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: Tue, 03 Oct 2006 19:35: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 Paul Eggert on 10/3/2006 12:45 AM:
> Eric Blake <address@hidden> writes:
> 
>> Shouldn't this also include ELOOP?
> 
> With ELOOP, we don't know whether the file exists.  It could
> merely be a symlink chain that's too long.  So it's safer
> for "rm" to print a diagnostic.

Actually, on platforms where SYMLOOP_MAX is undefined (doesn't Hurd fall
into this category?), then the only way to get ELOOP is via a true loop,
and not a long symlink chain.  Maybe it is worth conditionally filtering
on ELOOP based on the value of SYMLOOP_MAX?

- --
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

iD8DBQFFIw/T84KuGfSFAYARAtmwAKCjupTqQYRzk0mQSEf3JlcurrlVUgCgz/v9
jVgL25N4tnq3scbScUHkhHQ=
=Cbmr
-----END PGP SIGNATURE-----




reply via email to

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