This is the mail archive of the cygwin-patches@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA]: patch to rmdir


On Mon, May 22, 2000 at 12:24:26PM +0200, Corinna Vinschen wrote:
>Chris Faylor wrote:
>>Does this fix the erroneous error when you do a:
>>
>>rmdir somefilethatisnotadirectory
>>
>>too?
>
>No.
>
>Is it worth to check that, too?  To figure out _why_ permission is
>denied is somewhat complicated and I'm sure that slows things down
>much.  The primary information (rmdir failed) is given back to the
>application, though.
>
>Nevertheless I'm hoping that samba 2.0.7 will have fixed that problems.

It's not that hard.  If you get an "EACCESS" and the file is not a
directory then the errno should be set to ENOTDIR.

It is important that Cygwin act like UNIX as much as possible and
I think that EACCESS is always wrong.

cgf

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]