Re: Make: Obscure bug with wildcards
At 16:33 +0100 2000-02-06, Andreas Jaeger wrote:
>Could you try the appended patch for make? make doesn't properly
>initialize d_type - and this might be the problem (I noticed a similar
>problem with wildcards in glibc which was fixed with this patch from
>Andreas Schwab).
>
>Andreas
>
>--- dir.c
>+++ dir.c 2000/01/20 15:40:41
>@@ -1044,6 +1044,9 @@
> #ifdef _DIRENT_HAVE_D_NAMLEN
> d->d_namlen = len - 1;
> #endif
>+#ifdef _DIRENT_HAVE_D_TYPE
>+ d->d_type = DT_UNKNOWN;
>+#endif
> memcpy (d->d_name, df->name, len);
> return d;
> }
This patch seems to work. I've also discovered that backing out the last
change to sysdeps/generic/glob.c in glibc works (not that I advocate that
as a solution).
--
Joel Klecker (aka Espy) Debian GNU/Linux Developer
<URL:mailto:jk@espy.org> <URL:mailto:espy@debian.org>
<URL:http://web.espy.org/> <URL:http://www.debian.org/>
Reply to: