Looking at the strace there seems to be some other room for
optimization:
> open("a", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
> fstat64(5, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
Seems unnecessary, unless find was given -exec argument.
> fstat64(5, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
Duplicate.
Miklos
