This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
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