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: DJ Delorie <dj at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: fw at deneb dot enyo dot de, tuliom at ascii dot art dot br, libc-alpha at sourceware dot org
- Date: Tue, 25 Jun 2019 19:18:00 -0400
- Subject: Re: [PATCHv2] nftw: fill in stat buf for dangling links [BZ #23501]
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.
Or are you saying that failure to stat() means we change the type from
FTW_SLN to FTW_NS?
That would mean that programs would see different results due to this
change, even if they ignored the stat buffer for dangling symlinks.