From 59f927914c369dd048f5dfaad5f65299e25161db Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Thu, 21 Aug 2008 22:03:02 +0200 Subject: [PATCH] Fix sh.test regression in last patch. * libltdl/config/ltmain.m4sh (func_mode_link): Quote $#. Signed-off-by: Ralf Wildenhues --- ChangeLog | 2 ++ libltdl/config/ltmain.m4sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a97279d5..dd87eea8 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 d1c984cc..590252eb 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"