[Patch]: setting errno to ENOTDIR rather than ENOENT

Pierre A. Humblet pierre@phumblet.no-ip.org
Tue Jan 25 22:01:00 GMT 2005



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



More information about the Cygwin-patches mailing list