]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix $ECHO abuse exposed by recent patch.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 16 Nov 2008 22:36:25 +0000 (23:36 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 16 Nov 2008 22:36:25 +0000 (23:36 +0100)
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Require
_LT_CHECK_SHELL_FEATURES, for $lt_NL2SP.  Always quote argument
to $ECHO.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/libtool.m4

index 05285beaf7091c4edeb905324685af2f4248ef5f..4ad511a0a33cf5a8a08b6c42bd70f52135c4a08b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Fix $ECHO abuse exposed by recent patch.
+       * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Require
+       _LT_CHECK_SHELL_FEATURES, for $lt_NL2SP.  Always quote argument
+       to $ECHO.
+
        Skip sys_lib_search_path on systems without libz.
        * tests/search-path.at (sys_lib_search_path): Autotest needs at
        least one AT_CHECK executed in a test group.  So if we haven't
index a51c47de18fe7b69c9d08886ce8f6302c95cae62..763a4101b9328d2f9a35073e676fb0a1bb329a55 100644 (file)
@@ -1954,6 +1954,7 @@ m4_require([_LT_DECL_EGREP])dnl
 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 m4_require([_LT_DECL_OBJDUMP])dnl
 m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 AC_MSG_CHECKING([dynamic linker characteristics])
 m4_if([$1],
        [], [
@@ -1984,7 +1985,7 @@ if test "$GCC" = yes; then
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     fi
   done
-  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
+  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 BEGIN {RS=" "; FS="/|\n";} {
   lt_foo="";
   lt_count=0;
@@ -2004,7 +2005,7 @@ BEGIN {RS=" "; FS="/|\n";} {
   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 }'`
-  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
+  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 else
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 fi])