From: Richard Levitte Date: Wed, 25 May 2016 09:57:23 +0000 (+0200) Subject: Configure: handle spaces in source directory spec X-Git-Tag: OpenSSL_1_1_0-pre6~679 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3a08f81256f4e9156e384c224adcc8e0519577b;p=oweals%2Fopenssl.git Configure: handle spaces in source directory spec RT#4486 Reviewed-by: Matt Caswell --- 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;