Inconsistencies in *stat() for files with ACLs

2001-12-02 Thread Daniel Rock
Hi, lstat(), fstat(), stat() returned structure is inconsistent and misleading if the file has ACLs associated with it. Example: % getfacl test #file:test #owner:0 #group:4004 user::rw- group::r-- group:wheel:rw- mask::rw- other::r-- So the file has permissions rw-r--r--, but an additional

Re: Inconsistencies in *stat() for files with ACLs

2001-12-02 Thread Robert Watson
On Sun, 2 Dec 2001, Daniel Rock wrote: Hi, lstat(), fstat(), stat() returned structure is inconsistent and misleading if the file has ACLs associated with it. That behavior is defined by POSIX.1e, so it's what we implemented; you'll find that the same behavior is present on other

Re: Inconsistencies in *stat() for files with ACLs

2001-12-02 Thread Daniel Rock
Robert Watson schrieb: On Sun, 2 Dec 2001, Daniel Rock wrote: Hi, lstat(), fstat(), stat() returned structure is inconsistent and misleading if the file has ACLs associated with it. That behavior is defined by POSIX.1e, so it's what we implemented; you'll find that the same

Re: Inconsistencies in *stat() for files with ACLs

2001-12-02 Thread Chris Faulhaber
On Mon, Dec 03, 2001 at 01:52:19AM +0100, Daniel Rock wrote: Robert Watson schrieb: That said, I won't argue it's intuitive unless you know about the behavior already, and it probably should be documented in the stat(2) man page. If you're interested in discussing these semantics, it