[Patch]: setting errno to ENOTDIR rather than ENOENT

Corinna Vinschen vinschen@redhat.com
Tue Jan 25 22:38:00 GMT 2005


On Jan 25 17:01, Pierre A. Humblet wrote:
> Ah, I see your message on the list.
> 
> You found out that
>   lstat("dir/x")  with dir non-existing. => ENOENT
> 
> So
> >               if (pcheck_case == PCHECK_STRICT)
> >                 {
> >                   case_clash = true;
> > > -                 error = ENOENT;
> > > +                 error = component?ENOTDIR:ENOENT;
> 
> shouldn't be done after all. OK?

Erm... yes, that sounds right.  After all the case_clash means that the
directory component doesn't exist.


Thanks for catching this,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list