[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Do not assume glibc glob internals

From: Eli Zaretskii
Subject: Re: [PATCH] Do not assume glibc glob internals
Date: Fri, 29 Sep 2017 23:13:32 +0300

> Cc: address@hidden
> From: Paul Eggert <address@hidden>
> Date: Fri, 29 Sep 2017 12:57:43 -0700
> On 09/29/2017 01:06 AM, Eli Zaretskii wrote:
> > Are there other situations where Make uses "foo/" and expects
> > that to mean that 'foo' is a directory?
> It's pretty much any situation where Make looks for file names that the 
> user specifies. As a trivial example, the Makefile rule:
> foo/:; mkdir -p $@
> should fail if "foo" exists as a regular file, since Make will invoke 
> mkdir and mkdir will fail. If Make strips the trailing / before testing 
> the existence of "foo", Make will incorrectly skip the mkdir and so will 
> not guarantee that foo/ is a directory.

OK, and where is the support for that implemented in GNU Make?  I'd
like to have a look at the code.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]