This is the mail archive of the cygwin-patches@cygwin.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]
Other format: [Raw text]

Re: [Patch]: setting errno to ENOTDIR rather than ENOENT


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.


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