1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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 86b0f7aae6
commit 0fcfab24d7

View File

@ -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);