[PATCHv2] nftw: fill in stat buf for dangling links [BZ #23501]

Andreas Schwab schwab@linux-m68k.org
Wed Jun 26 08:27:00 GMT 2019


On Jun 25 2019, DJ Delorie <dj@redhat.com> wrote:

> Andreas Schwab <schwab@linux-m68k.org> writes:
>> Nope.  FTW_SLN must only be returned with defined stat data.
>
> That's the opposite of what we do now.  Every FTW_SLN is returned with
> undefined stat data.

Which is what the bug is all about, isn't it?  Only FTW_NS is allowed to
keep the stat data undefined.

> That would mean that programs would see different results due to this
> change, even if they ignored the stat buffer for dangling symlinks.

There is no dangling symlink, the name does not exist at all.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



More information about the Libc-alpha mailing list