[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 23:50:54 +0200 |
Paul Eggert <address@hidden> wrote:
> Jim Meyering <address@hidden> writes:
>
>> It should also include ENAMETOOLONG:
>
> Actually, isn't ENAMETOOLONG in the same category as ELOOP? That is,
> ENAMETOOLONG sometimes indicates the file isn't there, but sometimes
> not. For example,
>
> rm -f ./././././././.../foo
>
> (where the "..." stands for lots of "./"s) will fail due to
> ENAMETOOLONG, even though the named file actually does exist.
Oh! You're right.
I was under the impression that ENAMETOOLONG was only for FILENAME_MAX.
But I see now that it's also for PATH_MAX.
Thanks.
I'll remove that part of my change.
[bug #17900] rm -f should ignore ENOTDIR, Jim Meyering, 2006/10/08