]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix sh.test regression in last patch.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 21 Aug 2008 20:03:02 +0000 (22:03 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 21 Aug 2008 20:04:24 +0000 (22:04 +0200)
* libltdl/config/ltmain.m4sh (func_mode_link): Quote $#.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/config/ltmain.m4sh

index a97279d51eae58e16e3951394bc28c50c0ac41af..dd87eea8554f24f6e7484a0ab80221591412a6a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * 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.
index d1c984ccda6ec6de30f1694b11b0e32f1d95e898..590252eb2c14608f6da8aad5003c3d150a308ad2 100644 (file)
@@ -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"