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.