- Subject: test -x should use faccessat, not stat
- From: Eric Blake <ebb9@xxxxxxx>
- Date: Wed, 10 Feb 2010 15:32:30 +0000 (UTC)
- User-agent: Loom/3.14 (http://gmane.org/)
This report was originally raised on the cygwin list:
http://cygwin.com/ml/cygwin/2010-02/msg00239.html
In short, in the presence of ACLs, dash's implementation of test -r, test -w,
and test -x gives incorrect answers, when the current user has permissions to
access a file that were granted by ACLs but not by the current stat()
permissions. dash should be using faccessat(,AT_EACCESS) (or
eaccess/euidaccess) if available, rather than stat(), to determine whether a
file is accessible.
--
Eric Blake
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[LARTC]
[Bugtraq]
[Yosemite Forum]
[Photo]