From: Bruno Haible Date: Tue, 15 Oct 2024 21:03:00 +0000 (+0200) Subject: libtool.m4: Avoid word splitting on untrusted inputs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cf528a4f04e9da78b06635aac6545709007b882;p=thirdparty%2Flibtool.git libtool.m4: Avoid word splitting on untrusted inputs If $multilib is set to more than one word, the following error can be seen during configuration: test: too many arguments * m4/libtool.m4: Wrap variable in quotes. --- diff --git a/m4/libtool.m4 b/m4/libtool.m4 index d8a0a7280..dcd6adaed 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2584,7 +2584,7 @@ cygwin* | mingw* | windows* | pw32* | cegcc*) # If user builds GCC with multilib enabled, # it should just install on $(libdir) # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. - if test xyes = x$multilib; then + if test xyes = x"$multilib"; then postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~