This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Permission to read anything from ls, cp, and find?


On Oct 16 07:21, Eric Blake wrote:
> According to Corinna Vinschen on 10/16/2006 7:14 AM:
> > for instance, find(1) traverses directory trees by chdir'ing into
> > directories before listing them.  So even with this patch, find(1) is
> > still not a good candidate for backing up directory trees in a situation
> > as you describe above.  tar(1) doesn't seem to have this problem,
> > though.
> 
> Which version of find?  find 4.3.0 switched over to gnulib's fts
> implementation, which, if openat() and friends were to be implemented, is

It's with find 4.3.0.  It just doesn't traverse into a directory which
it has no permissions for.  Since reading the directory works usually, I
concluded that the failing chdir (see an strace) is the culprit.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]