Commit a064c615 authored by Richard Levitte's avatar Richard Levitte
Browse files

Make sure ./config passes options to ./Configure correctly



This is, even when they contain spaces or all kinds of funny quotes

Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4818)
parent 17f16617
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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."