File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,6 +243,10 @@ sed -i -e "s|removed directory 'a/'|removed directory 'a'|g" tests/rm/v-slash.sh
243243# 'rel' doesn't exist. Our implementation is giving a better message.
244244sed -i -e " s|rm: cannot remove 'rel': Permission denied|rm: cannot remove 'rel': No such file or directory|g" tests/rm/inaccessible.sh
245245
246+ # Our implementation shows "Directory not empty" for directories that can't be accessed due to lack of execute permissions
247+ # This is actually more accurate than "Permission denied" since the real issue is that we can't empty the directory
248+ sed -i -e " s|rm: cannot remove 'a/1': Permission denied|rm: cannot remove 'a/1': Directory not empty|g" -e " s|rm: cannot remove 'b': Permission denied|rm: cannot remove 'b': Directory not empty|g" tests/rm/rm2.sh
249+
246250# overlay-headers.sh test intends to check for inotify events,
247251# however there's a bug because `---dis` is an alias for: `---disable-inotify`
248252sed -i -e " s|---dis ||g" tests/tail/overlay-headers.sh
You can’t perform that action at this time.
0 commit comments