]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't escape spaces in CONFIGARGS, use double backslash with all whitespace
authorOndřej Surý <ondrej@isc.org>
Wed, 15 Apr 2020 12:44:42 +0000 (14:44 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 16 Apr 2020 06:12:39 +0000 (08:12 +0200)
(cherry picked from commit 9b0e85cbd573d6cc9683ff7808306f2dbc0fdf0f)

win32utils/Configure

index e8d3f7323debb745f0d1ce2cd0f3d0c5f5b7a6c3..8b0b804ce5bb415f96a24741c6a87f6c35469c34 100644 (file)
@@ -816,8 +816,9 @@ getversion();
 
 sub appargs {
     my $arg = $_[0];
-    # escape backslashes, spaces and double quotes
-    $arg =~ s/([\\ "])/\\$1/g;
+    # escape backslashes and double quotes
+    $arg =~ s/([\\"])/\\$1/g;
+    $arg =~ s/([\s])/\\\\$1/g;
     if (defined($configdefh{"CONFIGARGS"})) {
         $configdefh{"CONFIGARGS"} .= " " . $arg;
     } else {