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

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Sep 15 20:27:00 GMT 2017



On 15/09/2017 17:18, Florian Weimer wrote:
> On 09/13/2017 11:14 AM, Paul Eggert wrote:
>> 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.
> 
> If the BSDs are currently source-code-compatible, why doesn't GNU make fail there already?

My understanding is BSDs were not current source-code-compatible before
the dangling symlink fix (commit 5554304f0) since afaik both openbsd 
and freebsd do check for dangling symlinks (using gl_lstat if it is
the case).

Reverting back to ol GLOB_ALTDIRFUNC semantic with make glibc again
source-code-incompatible and by adding an extra flag would require
adjustments in the program source code to actually handle it.



More information about the Libc-alpha mailing list