Configure: handle spaces in source directory spec RT#4486 Reviewed-by: Matt Caswell <matt@openssl.org>
diff --git a/Configure b/Configure index 37ace21..0c87cd1 100755 --- a/Configure +++ b/Configure
@@ -210,7 +210,7 @@ # Collect target configurations my $pattern = catfile(dirname($0), "Configurations", "*.conf"); -foreach (sort glob($pattern) ) { +foreach (sort glob("\"$pattern\"") ) { &read_config($_); } @@ -2332,7 +2332,7 @@ 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;