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



Corinna Vinschen wrote:
> 
> Well done!  I looked into this a few hours ago and missed how easy a
> solution would be.  *mumbling something about needing glasses*

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?

Pierre


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