1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

runtests: make cleardir() erase dot files too

Because test cases might use dot files.

Closes #5838
This commit is contained in:
Daniel Stenberg 2020-08-21 16:35:50 +02:00
parent 712d16cbe0
commit d71ac6711a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2716,7 +2716,7 @@ sub cleardir {
opendir(DIR, $dir) ||
return 0; # can't open dir
while($file = readdir(DIR)) {
if(($file !~ /^\./)) {
if(($file !~ /^\.(|\.)$/)) {
unlink("$dir/$file");
$count++;
}