From 9b0e85cbd573d6cc9683ff7808306f2dbc0fdf0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 15 Apr 2020 14:44:42 +0200 Subject: [PATCH] Don't escape spaces in CONFIGARGS, use double backslash with all whitespace --- win32utils/Configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win32utils/Configure b/win32utils/Configure index daad52f047..9fcf6e512d 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 {