Re: Chasing down bugs with access(2)

2010-07-21 Thread Jaakko Heinonen
Hi, On 2010-07-20, Garrett Cooper wrote: I ran into an issue last night where apparently several apps make faulty assumptions w.r.t. whether or not access(2) returns functional data when running as a superuser. New implementations are discouraged from returning X_OK unless at least

Re: Chasing down bugs with access(2)

2010-07-21 Thread Garrett Cooper
On Wed, Jul 21, 2010 at 1:40 AM, Bruce Evans b...@optusnet.com.au wrote: On Tue, 20 Jul 2010, Garrett Cooper wrote: ... This seems wrong for directories.  It should say ... unless the file is 'executable'.  'executable' means searchable for directories, and the above shouldn't apply.  

Re: Chasing down bugs with access(2)

2010-07-21 Thread Bruce Evans
On Wed, 21 Jul 2010, Jaakko Heinonen wrote: On 2010-07-20, Garrett Cooper wrote: I ran into an issue last night where apparently several apps make faulty assumptions w.r.t. whether or not access(2) returns functional data when running as a superuser. New implementations are

Re: Chasing down bugs with access(2)

2010-07-21 Thread Bruce Evans
On Tue, 20 Jul 2010, Garrett Cooper wrote: Hi Hackers, I ran into an issue last night where apparently several apps make faulty assumptions w.r.t. whether or not access(2) returns functional data when running as a superuser. POSIX says: In early proposals, some inadequacies in the

Re: Chasing down bugs with access(2)

2010-07-21 Thread Bruce Evans
On Wed, 21 Jul 2010, Garrett Cooper wrote: On Wed, Jul 21, 2010 at 1:40 AM, Bruce Evans b...@optusnet.com.au wrote: - See a recent PR about unifdefed CAPABILITIES code in vaccess(). ?(The ?comment says that the code is always ifdefed out, but it now always ?unifdefed in.) ? I don't quite