[PATCH v5 2/2] io: Use gnulib fts implementation (BZ 22944, BZ 20331)

Collin Funk collin.funk1@gmail.com
Mon Apr 13 16:15:06 GMT 2026


Paul Eggert <eggert@cs.ucla.edu> writes:

> On 2026-04-11 10:06, Florian Weimer wrote:
>> I think we need to version the symbol, with an internal flag that
>> does more stat'ing with FTS_NOSTAT.
>
> Oh, let's not. FTS_NOSTAT means not to stat, and programs that rely on
> FTS_NOSTAT to stat have always been broken. In the long run it's
> obviously better to fix dracut etc. than to version the symbol, and it
> seems to me that this is true even in the not-so-long run.

Also worth noting that if dracut only needs the file type it can
continue to use FTS_NOSTAT. In the Gnulib implementation
fts_statp->st_mode will be set to a file type based on the d_type from
readdir or set to 0 if unknown.

Collin


More information about the Libc-alpha mailing list