You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test cases for filelock fail if the umask of the current user is not 022.
This is a problem, because it seems the default umask for Ubuntu 22.10 seems to be 002.
I can see documentation showing it should be 002. I know this is odd, as I was expecting it to be 002.
From /etc/login.defs
#
# Enable setting of the umask group bits to be the same as owner bits
# (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
# the same as gid, and username is the same as the primary group name.
#
# If set to yes, userdel will remove the user's group if it contains no
# more members, and useradd will create by default a group with the name
# of the user.
#
USERGROUPS_ENAB yes
Test cases should either skip or force the umask to make sure everything is working correctly.
The text was updated successfully, but these errors were encountered:
TheMatt2
changed the title
Test test_filelock.py::test_lock_mode_soft fails is default umask is 002
Test test_filelock.py::test_lock_mode_soft fails if default umask is 002
Apr 6, 2023
Perhaps there should be clearer documentation that Filelock sets permissions regardless of umask, and SoftFilelock sets permissions using umask? Perhaps changing this behavior?
Description
Test cases for filelock fail if the umask of the current user is not 022.
This is a problem, because it seems the default umask for Ubuntu 22.10 seems to be 002.
I can see documentation showing it should be 002. I know this is odd, as I was expecting it to be 002.
From
/etc/login.defs
This leads to the error in testing:
Steps to Reproduce
umask 002
Expected behavior
Test cases should either skip or force the umask to make sure everything is working correctly.
The text was updated successfully, but these errors were encountered: