This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug glob/22183] commit 5554304f0ddd ("posix: Allow glob to match dangling symlinks") cause "make" segfaults
- From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 22 Sep 2017 06:45:21 +0000
- Subject: [Bug glob/22183] commit 5554304f0ddd ("posix: Allow glob to match dangling symlinks") cause "make" segfaults
- Auto-submitted: auto-generated
- References: <bug-22183-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22183
--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Yes, it was pointed out by Andreas Schwab that this recent modification would
break GNUmake in some scenarios.
The current approach to fix it is in twofold [1]:
* Bump _GNU_GLOB_INTERFACE_VERSION to 2 and forcing new GNUmake build to use
its internal glob implementation.
* Add a compat symbol with previous semantic that avoid calling gl_lstat and
thus avoid breaking make.
Paul Eggert already sent an initial patch to fix it on make side [2], but I
think we should also change make configure script to check for
_GNU_GLOB_INTERFACE_VERSION 1 and 2 and enable glob for newer implementations
as well (with the fix along it).
I will keep the patch open to track this issue, thanks for reporting it.
[1] https://sourceware.org/ml/libc-alpha/2017-09/msg00718.html
[2] http://lists.gnu.org/archive/html/bug-make/2017-09/msg00014.html
--
You are receiving this mail because:
You are on the CC list for the bug.