On Fri, Jul 06, 2012 at 03:06:47PM +0200, Roland Mainz wrote:
> On Fri, Jul 6, 2012 at 2:30 PM, Dr. Werner Fink <[email protected]> wrote:
> > On Fri, Jul 06, 2012 at 03:13:18AM +0200, ольга крыжановская wrote:
> >> Does any one of the Linux gurus here know why Linux (g)libc does not
> >> provide O_SEARCH, i.e. the ability to open a directory with
> >> 'x'(execute) permission but without read permission ?
> >
> > AFAICR and found at gmane.org:
> >
> >    http://comments.gmane.org/gmane.linux.file-systems/33611
> >
> > this disccussion was back in 2009
> 
> Uhm... which flag should applications on Linux pass to |open()| which
> want to use |fchdir()| into a directory later which has the 'x' but no
> 'r' flag set ?

 /werner> su
 boole:werner # mkdir /tmp/search
 boole:werner # chmod 111 /tmp/search
 boole:werner # touch /tmp/search/found
 boole:werner # exit
 /werner> ll /tmp/search/found
 -rw-r--r-- 1 root root 0 Jul  6 16:10 /tmp/search/found
 /werner> ll /tmp/search/
 ls: cannot open directory /tmp/search/: Permission denied
 /werner> 

as long as you know what you're looking for there is no need of any
flag at all.


   Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to