Bug#737370: mkdir: directories created with weird mode when -p is used [FIXED in 8.22]

2015-03-09 Thread Frank Lin PIAT
On 2 Feb 2014, Bob Proulx said I cannot recreate the above behavior. [..] If I set umask to a more restrictive umask then I can. $ umask 022 $ rm -rf /tmp/a $ mkdir /tmp/a $ cd /tmp/a $ setfacl -m d:g::rwx . $ mkdir b $ mkdir -p c $ ls -log total 0 drwxrwxr-x+ 2

Bug#737370: mkdir: directories created with weird mode when -p is used

2014-02-02 Thread Fredrik Tolf
On Sat, 1 Feb 2014, Bob Proulx wrote: Fredrik Tolf wrote: I can't really imagine that this behavior is intended, and it seems to go against any reasonable principle of least surprise. It is intended because that is the way traditional legacy Unix systems have always behaved. And because that

Bug#737370: mkdir: directories created with weird mode when -p is used

2014-02-01 Thread Fredrik Tolf
Package: coreutils Version: 8.21-1 Severity: normal Dear Maintainer, Apparently, mkdir uses 0755 when used with the -p option to create multiple levels of directories in one go. Normally, 0777 would be, though masked to 0755 with the default umask. I can't really imagine that this behavior is

Bug#737370: mkdir: directories created with weird mode when -p is used

2014-02-01 Thread Bob Proulx
Fredrik Tolf wrote: Apparently, mkdir uses 0755 when used with the -p option to create multiple levels of directories in one go. Normally, 0777 would be, though masked to 0755 with the default umask. I assume you are talking about directories above the target directories getting created? If