[PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ #866]
Paul Eggert
eggert@cs.ucla.edu
Wed Sep 13 09:14:00 GMT 2017
Adhemerval Zanella wrote:
> Another approach that does not involve adding compat symbols (which adds
> a lot of code complexity inside glibc build and do not solve 'make' builds
> against new glibc) would to make GLOB_ALTDIRFUNCS to follow the old semantic
> of using gl_stat instead of gl_lstat while making glob without GLOB_ALTDIRFUNCS
> works as intended. And add another flag, GLOB_ALTDIRFUNCS2, which actually
> uses gl_lstat.
Although that's clever, it is a gratuitous source-code incompatibility with BSD,
which is not a good thing. To some extent it's just GLOB_FOLLOW and
GLOB_NOFOLLOW in disguise, and disguise is not a good thing in APIs. So I think
I still prefer the compat symbol approach.
We'll get GNU 'Make' fixed, and I wouldn't worry overly much about people
building unpatched 'Make' with new glibc. I filed a Make bug report is here:
http://lists.gnu.org/archive/html/bug-make/2017-09/msg00014.html
More information about the Libc-alpha
mailing list