diff options
Diffstat (limited to 'tests/rm')
-rwxr-xr-x | tests/rm/fail-eperm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm index fd9c7e157..a5eb4c18a 100755 --- a/tests/rm/fail-eperm +++ b/tests/rm/fail-eperm @@ -52,9 +52,9 @@ foreach my $dir (@dir_list) foreach my $f (readdir DIR_HANDLE) { - # Skip files owned by self, and symlinks. + # Skip files owned by self, symlinks, and directories. # It's not technically necessary to skip symlinks, but it's simpler. - -l $f || -o _ + -l $f || -o _ || -d _ and next; $found_file = 1; |