util/copy.pl: work around glob quirk in some of earlier 5.1x Perl versions.
In earlier 5.1x Perl versions quoting globs works only if there is white space. If there is none, it's looking for names starting with ". Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4695)
This commit is contained in:
parent
7285803872
commit
1097d2a39e
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ foreach $arg (@ARGV) {
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
$arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob...
|
$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, $_;
|
push @filelist, $_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue