"rm -r DIR" would mistakenly prompt about very long names
authorJim Meyering <meyering@redhat.com>
Mon, 31 Mar 2008 11:40:54 +0000 (13:40 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 31 Mar 2008 11:46:34 +0000 (13:46 +0200)
commitf433c3835fa7faadaff73526ce429b1140bdbc5e
tree566ab5a6b02fc403f15fbeccaa6da7cbe4dafbea
parent0d34887fe9912b65c1223cfefcaa9bf71c89b40c
"rm -r DIR" would mistakenly prompt about very long names

* src/remove.c (write_protected_non_symlink): Return 0(-1) when
euidaccess_stat pronounces a writable(not-writable) file, not -1(0).
* tests/rm/deep-2: New file.  Test for the above-fixed bug.
* tests/rm/Makefile.am (TESTS): Add deep-2.
Discovered while reviewing this change:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13071
NEWS
src/remove.c
tests/rm/Makefile.am
tests/rm/deep-2 [new file with mode: 0755]