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

Re: OT: find command permissions: how to exclude dir?



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.


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