Configure: fix handling of build.info attributes with value
authorRichard Levitte <levitte@openssl.org>
Wed, 1 Jul 2020 22:08:45 +0000 (00:08 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 3 Jul 2020 07:12:07 +0000 (09:12 +0200)
This line wasn't properly handled:

    SCRIPTS{misc,linkname=tsget}=tsget.pl

It generated an attribute "linkname=tsget" with the value 1, instead of
what it should have, an attribute "linkname" with the value "tsget".

Fixes #12341

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12344)

Configure

index 3a86e74fdc6175337a08f9e051d1a0d0a8ad6abc..b8dfeec477561dc0f2438fd754033e8fe273f27a 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1978,10 +1978,10 @@ if ($builder eq "unified") {
                 my $ac = 1;
                 my $ak = $a;
                 my $av = 1;
-                if ($a =~ m|^(!)?(.*?)\s* = \s*(.*?)$|) {
+                if ($a =~ m|^(!)?(.*?)\s* = \s*(.*?)$|x) {
                     $ac = ! $1;
-                    $ak = $1;
-                    $av = $2;
+                    $ak = $2;
+                    $av = $3;
                 }
                 foreach my $g (@goals) {
                     if ($ac) {