Re: bash test builtin and test_eaccess() vs access()

2006-01-29 Thread Chet Ramey
Alan Sundell wrote: > bash's "test" builtin can report the wrong results in many > circumstances (e.g. read-only filesystems, noexec filesystems, ACLs, > NFS, AFS, setuid executables, etc) because it uses stat() rather than > access() for the unary -w, -r, -x, etc. > > Could the eaccess/euidaccess

bash test builtin and test_eaccess() vs access()

2006-01-26 Thread Alan Sundell
bash's "test" builtin can report the wrong results in many circumstances (e.g. read-only filesystems, noexec filesystems, ACLs, NFS, AFS, setuid executables, etc) because it uses stat() rather than access() for the unary -w, -r, -x, etc. This has come up before: http://lists.gnu.org/archive/html/b