From e95433575db9b7dbfd01566cbbbde3c415be1082 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 (cherry picked from commit 9b0e85cbd573d6cc9683ff7808306f2dbc0fdf0f) --- win32utils/Configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win32utils/Configure b/win32utils/Configure index e8d3f7323d..8b0b804ce5 100644 --- a/win32utils/Configure +++ b/win32utils/Configure @@ -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 {