bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] gnulib-tool: do not use $(top_srcdir) unquoted; may be taint


From: Ralf Wildenhues
Subject: Re: [PATCH] gnulib-tool: do not use $(top_srcdir) unquoted; may be tainted
Date: Tue, 25 Nov 2008 07:13:58 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Jim,

* Jim Meyering wrote on Mon, Nov 24, 2008 at 09:02:51PM CET:
> [ along the way I noticed that my gnulib-tool patch is wrong,
>   since single quotes in the context of a Makefile dependency
>   list are interpreted literally ]

Indeed.

> But I did find a bug to fix... in automake.

> While $(top_srcdir) values usually look like ../src,
> but sometimes they are full, absolute names.  It's the latter
> case I was trying to protect against with the gnulib-tool patch.
> 
> For the record, you can cause trouble by building with a
> source directory name containing e.g., a space, and invoking
> configure via an absolute name.

Been there before, tried to push the exact patch you propose.
It doesn't help but cover up.  If the corresponding code complains,
the user used a path he shouldn't have used.  "Don't do that when
it hurts."

It would be an improvement if the sanity.m4 code produced a more
helpful error, though.

Cheers,
Ralf




reply via email to

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