diff options
author | Zack Weinberg <zackw@panix.com> | 2020-09-05 18:12:48 -0700 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-05 18:12:48 -0700 |
commit | 74a413ff814a070dc9a5ca577ddd42099fad2605 (patch) | |
tree | f1b30718fb75c1ed6b143578b7904dce73ee50f2 /m4 | |
parent | f50685a5f5c04bd8ec2a9577e1a7b8d7cf8967cb (diff) | |
download | automake-74a413ff814a070dc9a5ca577ddd42099fad2605.tar.gz |
automake: be robust against directories containing ().
This change fixes https://bugs.gnu.org/14196.
* m4/missing.m4 (AM_MISSING_HAS_RUN): always quote the
invocation (not just if $am_aux_dir contains space or tab), in
case $am_aux_dir contains () or other metachars not rejected by
AM_SANITY_CHECK; quoting with '...' suggested by Jim Meyering.
* t/man6.sh (HELP2MAN): adjust grep since missing value
is quoted now.
* t/am-missing-prog.sh: likewise.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/missing.m4 | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/m4/missing.m4 b/m4/missing.m4 index 6f742fb20..14448bf18 100644 --- a/m4/missing.m4 +++ b/m4/missing.m4 @@ -21,12 +21,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac + MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then |