From 1ee81530c09644492d5926b17174140c0a08ad22 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 22 Jul 2008 07:38:31 +0200 Subject: tests: again, do not change the mode of all directories below $HOME * tests/CuTmpdir.pm (chmod_tree): Do not run chmod on undefined argument, can happen when the build path contains spaces. --- tests/CuTmpdir.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/CuTmpdir.pm') diff --git a/tests/CuTmpdir.pm b/tests/CuTmpdir.pm index a7dd8b6a8..166e50bd8 100644 --- a/tests/CuTmpdir.pm +++ b/tests/CuTmpdir.pm @@ -45,7 +45,7 @@ sub chmod_1 sub chmod_tree { - if (chdir $dir) + if (defined $dir && chdir $dir) { # Perform the equivalent of find . -type d -print0|xargs -0 chmod -R 700. my $options = {untaint => 1, wanted => \&chmod_1}; -- cgit v1.2.3-54-g00ecf