[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #24342] -inum predicate shoud use dirent.d_ino instead of stat
Re: [bug #24342] -inum predicate shoud use dirent.d_ino instead of stat.st_ino
Mon, 9 Mar 2009 13:49:30 +0000
[ I dropped bug-gnulib from CC: ]
On Sun, Mar 8, 2009 at 8:05 PM, George Spelvin <address@hidden> wrote:
> Notice how it seems to assume that state.have_stat describes the same
> "current file" as the stat_buf argument.
> So perhaps the leaf flag could be stuffed into the state structure.
Yes and yes.
> (Ideally, the pathname and the stat_buf would be stuffed into the
> state structure and a pointer to it would be passed down, so the
> find engine would be reentrant.)
I'd almost certainly accept such a change for that percise advantage,
but since it would be an extensive change, the GNU project would need
a copyright assignment... Would you be willing?
Re: [bug #24342] -inum predicate shoud use dirent.d_ino instead of stat.st_ino, George Spelvin, 2009/03/08