coreutils/tests/mkdir
Paul Eggert e9789a1cf2 mkdir: fix bug when -m's more generous than umask
Problem reported by David McCall (Bug#45886).
I introduced this problem when fixing Bug#14371.
* NEWS: Mention the fix.
* src/mkdir.c (struct mkdir_options): New members umask_ancestor,
umask_self, replacing umask_value.
(make_ancestor): Use them when temporarily adjusting umask.
(main): Set them, and set the umask to umask_self instead
of leaving it alone.
* tests/mkdir/perm.sh (tests): Add test case for bug.
2021-01-15 02:59:24 -08:00
..
p-1.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
p-2.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
p-3.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
p-acl.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
p-slashdot.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
p-thru-slink.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
p-v.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
parents.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
perm.sh mkdir: fix bug when -m's more generous than umask 2021-01-15 02:59:24 -08:00
restorecon.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
selinux.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
smack-no-root.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
smack-root.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
special-1.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
t-slash.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00
writable-under-readonly.sh maint: update all copyright year number ranges 2021-01-01 16:36:09 +00:00