summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-07-22 07:38:31 +0200
committerJim Meyering <meyering@redhat.com>2008-07-22 13:15:02 +0200
commit1ee81530c09644492d5926b17174140c0a08ad22 (patch)
treedc03df9ac15481d8c35c85629c5cefa5f30047a5 /tests
parentecb0ea20cac0c5320bf6614092787ea1b1bdbb24 (diff)
downloadcoreutils-1ee81530c09644492d5926b17174140c0a08ad22.tar.xz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/CuTmpdir.pm2
1 files changed, 1 insertions, 1 deletions
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};