-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ben Pfaff on 9/14/2009 5:51 PM:
>> + /* Mingw remove("file/") fails with EINVAL, instead of the required
>> + ENOTDIR. */
>> + if (ISSLASH (name[len - 1]))
>> + {
>> + errno = ENOTDIR;
>> + return -1;
>> + }
>
> I believe that this will return ENOTDIR for a file whose name
> ends in '/' or '\' and on which lstat() fails (e.g. for a file
> that doesn't exist).
I tested; it failed with EINVAL on mingw. And on Solaris 8,
unlink("file/") succeeds at removing file; I need to test whether
remove("file/") succeeds as well, or else enhance remove.m4 to work around
that bug too.
- --
Don't work too hard, make some time for fun as well!
Eric Blake [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqu2p8ACgkQ84KuGfSFAYBJVgCgw/NbfFgNnJKzSUTLPlSZG19P
CBAAn1gXrc3tmQi0yadACSpTGPtGRDHp
=U16t
-----END PGP SIGNATURE-----