OT: find command permissions: how to exclude dir?

Gordon Messmer yinyang at eburg.com
Wed Nov 5 21:21:33 UTC 2008


Rick Stevens wrote:
> Gordon Messmer wrote:
>>
>> If -name is the first predicate, and you prune matches, find will not 
>> need to stat() the directory entry:
> 
> Sorry, won't work for GVFS filesystem mountpoints.  As soon as the 
> non-owner touches the inode, the error occurs.
...
> Note that test was on F9, x86_64.

Yep, that appears to be true for F9.  It looks like the version of 
findutils included in F10 has been fixed in this respect, though. 
There's no need to touch the inode for directories which are being 
pruned based on their name.  :)

The platform difference explains the discrepancy between your tests and 
mine.




More information about the fedora-list mailing list