]> git.ipfire.org Git - thirdparty/coreutils.git/commit
With --force (-f), rm no longer fails for ENOTDIR.
authorJim Meyering <jim@meyering.net>
Tue, 3 Oct 2006 13:13:09 +0000 (13:13 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 3 Oct 2006 13:13:09 +0000 (13:13 +0000)
commitda9541f18e6985593b73c30d121605e8cff62a7b
treefa536023ddb705bdc539244b7dd8bf1c74c0f95b
parentd2e7358a9be5b7f1b816e46f3a2cf151463f2208
With --force (-f), rm no longer fails for ENOTDIR.
* src/remove.c (ignorable_missing): New function.
Use it everywhere, rather than open-coding the test.
Andreas Schwab reported the ENOTDIR problem.
(ignorable_missing): Similarly, don't fail for ENAMETOOLONG.
* NEWS: Mention the bug fix.
* tests/rm/ignorable: New file.  Test for the ENOTDIR case.
* tests/rm/ignore-name-too-long: New file. Test for ENAMETOOLONG.
* tests/rm/Makefile.am (TESTS): Add the new file names.
ChangeLog
NEWS
src/remove.c
tests/rm/Makefile.am
tests/rm/ignorable [new file with mode: 0755]
tests/rm/ignore-name-too-long [new file with mode: 0755]