bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #17900] rm -f should ignore ENOTDIR


From: Eric Blake
Subject: Re: [bug #17900] rm -f should ignore ENOTDIR
Date: Mon, 02 Oct 2006 21:53:15 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 10/2/2006 11:19 AM:
>> This error should be ignored.  After all, if a file name component is not a
>> directory the file cannot exist, so rm -f should handle it the same as
>> ENOENT.
>
> Thanks for reporting that.
> Here's the patch I'll check in as soon as I write the test cases:

Shouldn't this also include ELOOP?

$ ln -s loop .
$ rm -f loop/oops
rm: cannot remove `loop/oops': Too many levels of symbolic links

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFId6r84KuGfSFAYARAmrIAKCmvLvQFV0AWBX18GOYoabv0gGdLQCZAbua
2ct7ZsOJO59Yn5g7bMbBBEs=
=otkR
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]