aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrisztian Litkey <krisztian.litkey@nokia.com>2010-10-29 19:57:39 +0300
committerKrisztian Litkey <krisztian.litkey@nokia.com>2010-10-29 19:57:39 +0300
commit1e907e0eb63001a272319f4dbdccaab6b890a772 (patch)
tree9f7175a57a18261f05e44abf589d3b8955ed5625
parentf75d4a3527f47505333989d08683837a8ecc9110 (diff)
Better shave argument protection.
-rw-r--r--build-aux/shave-libtool.in6
-rw-r--r--build-aux/shave.in10
2 files changed, 8 insertions, 8 deletions
diff --git a/build-aux/shave-libtool.in b/build-aux/shave-libtool.in
index 54ebd69..0f7fb12 100644
--- a/build-aux/shave-libtool.in
+++ b/build-aux/shave-libtool.in
@@ -65,7 +65,7 @@ while test "$#" -gt 0; do
preserved_args="$preserved_args $opt"
;;
*)
- preserved_args="$preserved_args $opt"
+ preserved_args="$preserved_args '$opt'"
;;
esac
done
@@ -102,8 +102,8 @@ if test -z $V; then
if test $pass_though -eq 0; then
echo "$Q$output"
fi
- $LIBTOOL --silent $tag $preserved_args
+ eval "$LIBTOOL --silent $tag $preserved_args"
else
echo $LIBTOOL $tag $preserved_args
- $LIBTOOL $tag $preserved_args
+ eval "$LIBTOOL $tag $preserved_args"
fi
diff --git a/build-aux/shave.in b/build-aux/shave.in
index 32249cd..461a1bf 100644
--- a/build-aux/shave.in
+++ b/build-aux/shave.in
@@ -54,14 +54,14 @@ while test "$#" -gt 0; do
;;
-o)
lt_output="$1"
- preserved_args="$preserved_args ${opt//\"/\\\"}"
+ preserved_args="$preserved_args $opt"
;;
-out:*|/out:*)
lt_output="${opt#-out:}"
- preserved_args="$preserved_args ${opt//\"/\\\"}"
+ preserved_args="$preserved_args $opt"
;;
*)
- preserved_args="$preserved_args ${opt//\"/\\\"}"
+ preserved_args="$preserved_args '$opt'"
;;
esac
done
@@ -105,8 +105,8 @@ if test -z $V; then
if test $pass_through -eq 0; then
echo "$Q$output"
fi
- eval $REEL_TOOL $preserved_args
+ eval "$REEL_TOOL $preserved_args"
else
echo $REEL_TOOL $preserved_args
- eval $REEL_TOOL $preserved_args
+ eval "$REEL_TOOL $preserved_args"
fi