fix copy and copy-if-different whitespace problem
authorsimon-p-r <simon.ricaldone@circabs.com>
Mon, 10 Jul 2017 22:19:33 +0000 (23:19 +0100)
committerRich Salz <rsalz@openssl.org>
Sat, 15 Jul 2017 13:10:00 +0000 (09:10 -0400)
From https://github.com/openssl/openssl/pull/1023

CLA: trivial

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3904)

util/copy-if-different.pl
util/copy.pl

index ec99e084b56a900e585d9f64299c27ff7a10eba9..e1245f54aff120d68956208eb9d772434060a87b 100644 (file)
@@ -12,7 +12,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, $_;
                }
index eba6d5815e9cef6b312e71cdee6f5642b2ac06af..a6b2a54ec6f06a2e4d7954f992f04e7fe8f032ee 100644 (file)
@@ -19,7 +19,7 @@ foreach $arg (@ARGV) {
                next;
                }
        $arg =~ s|\\|/|g;       # compensate for bug/feature in cygwin glob...
-       foreach (glob $arg)
+       foreach (glob qq("$arg"))
                {
                push @filelist, $_;
                }