[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #17900] rm -f should ignore ENOTDIR
From: |
Jim Meyering |
Subject: |
Re: [bug #17900] rm -f should ignore ENOTDIR |
Date: |
Tue, 03 Oct 2006 07:55:23 +0200 |
Eric Blake <address@hidden> wrote:
> 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
Yes. Thanks.
It should also include ENAMETOOLONG:
$ rm -rf /t/$(printf %0257 1)/x 2> /dev/null || echo bug
bug
[bug #17900] rm -f should ignore ENOTDIR, Jim Meyering, 2006/10/08