Commit c3a43bca authored by Bjorn Munch's avatar Bjorn Munch

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
parent ba70e8ea
...@@ -164,6 +164,9 @@ sub copytree { ...@@ -164,6 +164,9 @@ sub copytree {
copytree("$from_dir/$_", "$to_dir/$_"); copytree("$from_dir/$_", "$to_dir/$_");
next; next;
} }
# Only copy plain files
next unless -f "$from_dir/$_";
copy("$from_dir/$_", "$to_dir/$_"); copy("$from_dir/$_", "$to_dir/$_");
} }
closedir(DIR); closedir(DIR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment