Fix handling of directory with x but no r permission
This commit is contained in:
parent
4563b0a53a
commit
574338319e
|
@ -85,8 +85,8 @@ sub cleandir {
|
|||
print STDERR "$0:", " " x $level, " cleandir $dir $since {\n";
|
||||
}
|
||||
if (!opendir(DIR, ".")) {
|
||||
printf STDERR "$0:", " " x $level, " cannot opendir $dir: $!";
|
||||
return;
|
||||
print STDERR "$0:", " " x $level, " cannot opendir $dir: $!\n";
|
||||
return 0;
|
||||
}
|
||||
my $std = lstat(".");
|
||||
my $fs = $std->dev;
|
||||
|
|
Loading…
Reference in New Issue