Bug #43570 MTR2 hangs when test fails and named pipe created

Hangs when trying to copy the pipe
Amend copytree() to only copy regular files
This commit is contained in:
Bjorn Munch 2009-04-01 16:23:10 +02:00
parent ba70e8eac7
commit c3a43bcaa6

View File

@ -164,6 +164,9 @@ sub copytree {
copytree("$from_dir/$_", "$to_dir/$_");
next;
}
# Only copy plain files
next unless -f "$from_dir/$_";
copy("$from_dir/$_", "$to_dir/$_");
}
closedir(DIR);