Revert "Don't crash on a missing Subject in index.txt"
[openssl.git] / util / copy-if-different.pl
index e1245f54aff120d68956208eb9d772434060a87b..5420f3f2bd30413ba6cb08d612635c82979ee243 100644 (file)
@@ -12,7 +12,8 @@ my @filelist;
 
 foreach my $arg (@ARGV) {
        $arg =~ s|\\|/|g;       # compensate for bug/feature in cygwin glob...
-       foreach (glob qq("$arg"))
+       $arg = qq("$arg") if ($arg =~ /\s/);    # compensate for bug in 5.10...
+       foreach (glob $arg)
                {
                push @filelist, $_;
                }