From: Ralf Wildenhues Date: Thu, 21 Aug 2008 20:03:02 +0000 (+0200) Subject: Fix sh.test regression in last patch. X-Git-Tag: v2.2.6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59f927914c369dd048f5dfaad5f65299e25161db;p=thirdparty%2Flibtool.git Fix sh.test regression in last patch. * libltdl/config/ltmain.m4sh (func_mode_link): Quote $#. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index a97279d51..dd87eea85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-08-21 Ralf Wildenhues + * libltdl/config/ltmain.m4sh (func_mode_link): Quote $#. + Disallow `-L path', do not misparse it silently. * libltdl/config/ltmain.m4sh (func_mode_link): Diagnose `-L' without argument, and `-L path', i.e., with a space. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index d1c984ccd..590252eb2 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -4036,7 +4036,7 @@ func_mode_link () func_stripname '-L' '' "$arg" dir=$func_stripname_result if test -z "$dir"; then - if test $# -gt 0; then + if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option"