automake-patches
[Top][All Lists]
Advanced

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

Re: bug in m4/mkdirp.m4


From: Eric Blake
Subject: Re: bug in m4/mkdirp.m4
Date: Wed, 5 Oct 2005 13:49:59 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Alexandre Duret-Lutz <adl <at> src.lip6.fr> writes:

> 2005-10-03  Alexandre Duret-Lutz  <adl <at> gnu.org>
> 
>       * tests/nobase.test: Exercise previous patch.
> 
> +# Remove the 'x' bits just for fun.  (Peter O'Gorman said: "If an
> +# upstream source tarball does not use the autotools, it is sometimes
> +# easier to build if it is modified to use them. Then a patch is
> +# generated, and applied to the unpacked clean sources during the
> +# build. patch(1) knows nothing about permissions, so executable bits
> +# etc can disappear.")
> +chmod -x install-sh

'chmod -x install-sh' is not portable.  -x looks like an option, but POSIX does 
not specify what an implementation must do with an option.  And even if it is 
treated the same as 'chmod -- -x install-sh', which is specified by POSIX, it 
can only change mode bits according the the current setting of umask, such that 
the file might STILL be executable afterwards.  It is much more portable to 
do 'chmod a-x install-sh'.

--
Eric Blake






reply via email to

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