diff options
author | Richard Levitte <levitte@openssl.org> | 2020-04-23 18:59:10 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-04-25 04:05:27 +0200 |
commit | 6a960a94ccba41420c11ebd3eb82208b4681ee05 (patch) | |
tree | 9749c6c3b816f76d4c1aaa9c5e636998694668d9 /Configure | |
parent | Fix dev/release-aux-openssl-announce-pre-release.tmpl (diff) | |
download | openssl-6a960a94ccba41420c11ebd3eb82208b4681ee05.tar.xz openssl-6a960a94ccba41420c11ebd3eb82208b4681ee05.zip |
Configure: Allow quoted values in VERSION
Fixes #11618
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11624)
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -286,7 +286,13 @@ collect_information( qr/\s*(\w+)\s*=\s*(.*?)\s*$/ => sub { # Only define it if there is a value at all - $version{uc $1} = $2 if $2 ne ''; + if ($2 ne '') { + my $k = $1; + my $v = $2; + # Some values are quoted. Trim the quotes + $v = $1 if $v =~ /^"(.*)"$/; + $version{uc $k} = $v; + } }, "OTHERWISE" => sub { die "Something wrong with this line:\n$_\nin $srcdir/VERSION" }, |