[PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ #866]

Adhemerval Zanella adhemerval.zanella@linaro.org
Sat Sep 9 11:56:00 GMT 2017


I give you that we should properly document what GLOB_ALTDIRFUNC
expects for partially initialized glob_t alternative functions, but currenyl
glob code assumes that if GLOB_ALTDIRFUNC is set then glob_t
function pointers actually points to valid implementation.

So I think this is essentially a make issue. And since make also packs
its own glob copy from gnulib, it is matter to fix on make if and when
it syncs with gnulib.

On 09/09/2017 11:50, Andreas Schwab wrote:
> This breaks make, it doesn't expect that glob calls gl_lstat.
>
> dir_setup_glob:
>
>   /* We don't bother setting gl_lstat, since glob never calls it.
>      The slot is only there for compatibility with 4.4 BSD.  */
>
> Andreas.
>




More information about the Libc-alpha mailing list