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

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Oct 16 13:46:00 GMT 2006


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/



More information about the Cygwin mailing list