bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #17877] Invalid "No such file or directory" error on filesystem


From: Paul Eggert
Subject: Re: [bug #17877] Invalid "No such file or directory" error on filesystem without stable inode numbers
Date: Sun, 08 Oct 2006 19:49:46 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

"James Youngman" <address@hidden> writes:

> I'm very reluctant to try opening every file in the
> filesystem just in case it turns out to be a directory we need to
> descend into.

Your reluctance is understandable, since it is incorrect to
always open every directory entry.  The corresponding file
might be a special file, and opening devices can have side
effects (e.g., opening and closing a tape device might
rewind it).  Similarly for other kinds of files (e.g.,
fifos).  If the app knows the file cannot be a special file
or a fifo or etc. then it should be OK, but 'find' doesn't
know this in general.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]