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: Avoid duplicate names in /proc/registry (which may crash find) ?


On Dec  2 07:31, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Corinna Vinschen on 12/2/2008 5:08 AM:
> > - If find crashes in this situation, isn't this a bug in find which
> >   should be fixed in find?
> 
> No.  The problem is that readdir() is returning the same name twice, once
> for a directory and once for a file.  Even without d_type support, this
> means when you go to stat() that name, you get the same answer twice

Right, but that doesn't mean find should crash.  What about a graceful
solution to an obvious problem in the underlying FS?


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]