]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_8] handle multi-word product names better
authorEvan Hunt <each@isc.org>
Wed, 27 Mar 2013 03:39:56 +0000 (20:39 -0700)
committerEvan Hunt <each@isc.org>
Wed, 27 Mar 2013 03:39:56 +0000 (20:39 -0700)
(cherry picked from commit 0ebd8d9ea3f689d89cdc19cb8dd5a5224179fb5b)

win32utils/makeversion.pl

index 2f7dac67de8f80e114f5894fe66f73b433e588f0..ca989e3746bc70ca2d4f743e91137d638e006eea 100644 (file)
@@ -47,7 +47,12 @@ while (<VERSIONFILE>) {
        if($data) {
                ($name, $value) = split(/=/,$data);
                ($name) = split(/\s+/, $name);
-               ($value) = split(/\s+/, $value);
+                if ($name eq 'PRODUCT') {
+                        ($value) =~ s/^["\s]+//;
+                        ($value) =~ s/["\s]+$//;
+                } else {
+                        ($value) = split(/\s+/, $value);
+                }
                $Versions{$name} = $value;
        }
 }