From: Richard Levitte Date: Tue, 3 May 2016 21:58:38 +0000 (+0200) Subject: Allow spaces in filenames when using perl's glob X-Git-Tag: OpenSSL_1_1_0-pre6~940 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1697a81bafcc9a65012b62ba01c1661bf40e5edb;p=thirdparty%2Fopenssl.git Allow spaces in filenames when using perl's glob Reviewed-by: Matt Caswell --- diff --git a/util/copy-if-different.pl b/util/copy-if-different.pl index 63a9a05f31f..2bf78358275 100755 --- a/util/copy-if-different.pl +++ b/util/copy-if-different.pl @@ -18,7 +18,7 @@ my @filelist; foreach my $arg (@ARGV) { $arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob... - foreach (glob $arg) + foreach (glob qq("$arg")) { push @filelist, $_; } diff --git a/util/copy.pl b/util/copy.pl index c4bcccdee6b..ef4d8708e24 100644 --- a/util/copy.pl +++ b/util/copy.pl @@ -26,7 +26,7 @@ foreach $arg (@ARGV) { next; } $arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob... - foreach (glob $arg) + foreach (glob qq("$arg")) { push @filelist, $_; }