This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]