bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mingw remove bug


From: Eric Blake
Subject: Re: mingw remove bug
Date: Mon, 14 Sep 2009 18:06:55 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----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             address@hidden
-----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-----




reply via email to

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