Re: test -x should use faccessat, not stat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Blake <ebb9@xxxxxxx> wrote:
> 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.

What does bash to in this case?

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux