From a3a08f81256f4e9156e384c224adcc8e0519577b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 25 May 2016 11:57:23 +0200 Subject: [PATCH] Configure: handle spaces in source directory spec RT#4486 Reviewed-by: Matt Caswell --- Configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configure b/Configure index 37ace21dd2..0c87cd1a69 100755 --- a/Configure +++ b/Configure @@ -210,7 +210,7 @@ die "erroneous version information in opensslv.h: ", # Collect target configurations my $pattern = catfile(dirname($0), "Configurations", "*.conf"); -foreach (sort glob($pattern) ) { +foreach (sort glob("\"$pattern\"") ) { &read_config($_); } @@ -2332,7 +2332,7 @@ sub run_dofile foreach (@templates) { die "Can't open $_, $!" unless -f $_; } - my $cmd = "$config{perl} \"-I.\" \"-Mconfigdata\" $dofile -o\"Configure\" \"".join("\" \"",@templates)."\" > \"$out.new\""; + my $cmd = "$config{perl} \"-I.\" \"-Mconfigdata\" \"$dofile\" -o\"Configure\" \"".join("\" \"",@templates)."\" > \"$out.new\""; #print STDERR "DEBUG[run_dofile]: \$cmd = $cmd\n"; system($cmd); exit 1 if $? != 0; -- 2.25.1