"rm -rf /etc/motd" (run by non-root) now prints a diagnostic.
authorJim Meyering <jim@meyering.net>
Wed, 20 Dec 2006 18:56:20 +0000 (19:56 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 21 Dec 2006 07:58:11 +0000 (08:58 +0100)
commitc8ef95eaed944ec70ccd70c077cf465c6311c1b6
tree5c83a1915419c58457fff59afe894abf3e00471c
parentd69fc66d81c7166fe689418f42b7cb900d2a1433
"rm -rf /etc/motd" (run by non-root) now prints a diagnostic.
* src/remove.c (remove_entry): Handle EACCES for a non-directory, too.
Karl Berry reported that a cross-partition "mv /etc/issue ~"
failed with the um,... suboptimal diagnostic,
"mv: cannot remove `/etc/issue': Not a directory".
* tests/rm/Makefile.am (TESTS): Add fail-eacces.
* tests/rm/fail-eacces: New file.
* NEWS: Mention that both mv and rm are affected.
ChangeLog
NEWS
src/remove.c
tests/rm/Makefile.am
tests/rm/fail-eacces [new file with mode: 0755]