From 430fe58a24339edace14d60de315f357bd813405 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 7 Jan 2015 18:14:44 +1300 Subject: [PATCH] Properly quote parameters in preinst-swig wrapper. $* is subject to word-splitting and pathname expansion, whereas "$@" expands to each parameter as a separate quoted word. Some ancient shells expand "$@" to "" if there are no parameters, but that isn't really a concern here as running swig without arguments isn't useful. --- preinst-swig.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preinst-swig.in b/preinst-swig.in index 0f49e2e5e..384593ce1 100755 --- a/preinst-swig.in +++ b/preinst-swig.in @@ -4,4 +4,4 @@ srcdir=`cd "$builddir" && cd '@srcdir@' && pwd` SWIG_LIB=$srcdir/Lib #SWIG_LIB=`cygpath -w $srcdir/Lib` # For native Windows version of SWIG export SWIG_LIB -exec "$builddir/swig" $* +exec "$builddir/swig" "$@"