[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir -p and Default ACLs
From: |
Paul Eggert |
Subject: |
Re: mkdir -p and Default ACLs |
Date: |
Fri, 25 Jul 2008 15:31:01 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Jan Engelhardt <address@hidden> writes:
> Using 0755 is what I deem the bug, and 0777 is what I think is
> correct.
But mkdir -p also invokes umask, so the two should be equivalent.
Here's the behavior I see with coreutils 6.12 on Debian stable (no ACLs):
$ umask
0022
$ strace -e mkdir,umask mkdir test1
mkdir("test1", 0777) = 0
$ strace -e mkdir,umask mkdir -p test2
umask(0) = 022
mkdir("test2", 0755) = 0
mkdir("test1", 0777) with umask 022 ought to be equivalent to
mkdir("test2", 0755) with umask 0. If it isn't equivalent, that
suggests something is dodgy with your ACL implementation.