From: Ondřej Surý Date: Wed, 15 Apr 2020 12:44:42 +0000 (+0200) Subject: Don't escape spaces in CONFIGARGS, use double backslash with all whitespace X-Git-Tag: v9.17.2~146^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=9b0e85cbd573d6cc9683ff7808306f2dbc0fdf0f;p=thirdparty%2Fbind9.git Don't escape spaces in CONFIGARGS, use double backslash with all whitespace --- diff --git a/win32utils/Configure b/win32utils/Configure index daad52f0470..9fcf6e512dd 100644 --- a/win32utils/Configure +++ b/win32utils/Configure @@ -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 {