summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-11-30 08:20:02 +0100
committerRichard Levitte <levitte@openssl.org>2017-12-08 00:36:21 +0100
commita064c6158e2deb706a09dd8ca95523c97ecbfb2d (patch)
tree7516c7977f6dafd5ca2c19c44e7e1809c2ec3533 /config
parent17f1661724480b720f718d455b997b5fa52be424 (diff)
downloadopenssl-new-a064c6158e2deb706a09dd8ca95523c97ecbfb2d.tar.gz
Make sure ./config passes options to ./Configure correctly
This is, even when they contain spaces or all kinds of funny quotes Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4818)
Diffstat (limited to 'config')
-rwxr-xr-xconfig7
1 files changed, 5 insertions, 2 deletions
diff --git a/config b/config
index a341af2d61..00f9087611 100755
--- a/config
+++ b/config
@@ -35,7 +35,8 @@ See INSTALL for instructions.
EOF
;;
-*) options=$options" $i" ;;
+*) i=`echo "$i" | sed -e "s|'|'\\\\\\''|g"`
+ options="$options '$i'" ;;
esac
done
@@ -902,7 +903,9 @@ if [ $? = "0" ]; then
echo $PERL $THERE/Configure $OUT $options
fi
if [ "$DRYRUN" = "false" ]; then
- $PERL $THERE/Configure $OUT $options
+ # eval to make sure quoted options, possibly with spaces inside,
+ # are treated right
+ eval $PERL $THERE/Configure $OUT $options
fi
else
echo "This system ($OUT) is not supported. See file INSTALL for details."