]> 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>
Wed, 15 Apr 2020 12:56:35 +0000 (14:56 +0200)
win32utils/Configure

index daad52f047067d0be06e3099cfd3ce60642d476c..9fcf6e512dd05bdf276eb2502b63a253d753c341 100644 (file)
@@ -640,8 +640,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 {