This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCHv2] nftw: fill in stat buf for dangling links [BZ #23501]
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: DJ Delorie <dj at redhat dot com>
- Cc: fw at deneb dot enyo dot de, tuliom at ascii dot art dot br, libc-alpha at sourceware dot org
- Date: Wed, 26 Jun 2019 10:27:14 +0200
- Subject: Re: [PATCHv2] nftw: fill in stat buf for dangling links [BZ #23501]
- References: <87imst9xie.fsf@igel.home> <xn8stpuudz.fsf@greed.delorie.com>
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."