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

Re: qurious find error



Your example, below, does not need to access the file's inode for more information, hence no error. You would get a similar 'file not found' error if you used any of the time tests (-?time), file size tests (-size), tests of the inode number (-inum), and so on. Whatever test you use, it must require a stat() call to get additional information about the file from its inode.

Bob

Vladimir Zolotykh wrote:
On Wed, 07 Jun 2006 11:26:56 -0700
Bob McGowan <bob_mcgowan@symantec.com> wrote:


.... 'find' then presumably (this is a guess, I'm not familiar with the code) reads the full directory listing (recursively), closes the discriptor (4), then does a 'stat' on each file, for additional information. But, since the fd has been closed, it no longer exists and can't be stat'd, causing the error.


Very likely it is so. Thank you all. Why was I confused of this
particular error message? Because the "-group" is the only known (for
me) switch that cases find to error that way. For example

  sudo find /proc -name foo -print

doesn't error.





Reply to: