Florian Weimer writes:
> I thought the bug is that it's not actually a hint? That DT_UNKNOWN
> here leads to incorrect results in glob?
All the DT_* are hints, according to the man pages, which say that
DT_UNKNOWN must be handled by the caller. So I guess it depends on
whether the original deve
* DJ Delorie:
> Florian Weimer writes:
>>> + if (fullpath == NULL)
>>> + /* This matches old behavior wrt DT_UNKNOWN. */
>>> + break;
>>
>> Shouldn't this report memory allocation failure to the caller?
>
> We could easily replace that break wi
Florian Weimer writes:
>> + if (fullpath == NULL)
>> +/* This matches old behavior wrt DT_UNKNOWN. */
>> +break;
>
> Shouldn't this report memory allocation failure to the caller?
We could easily replace that break with a "goto memory_erro
* DJ Delorie:
> diff --git a/lib/glob.c b/lib/glob.c
> index 22c459574..d0521bb4a 100644
> --- a/lib/glob.c
> +++ b/lib/glob.c
> @@ -1381,7 +1381,26 @@ glob_in_dir (const char *pattern, const char
> *directory, int flags,
>if (flags & GLOB_ONLYDIR)
> switch (readd