This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Patch for cd .../. bug
> >This patch fixes the bug that allows cd .../. to succeed.
>
> This isn't a bug. It's how Windows works.
It breaks. Try it. You get dumped in a non-existent directory. Windows
ignores runs of dots. Unix treats them as non-existent files. At present
Cygwin has a mixture of both (treat last component as non-existent file,
ignore other components). IMO, this inconsistency is a bug. You shouldn't be
able to chdir() into an invalid directory (as you can at present). The path
is accepted by chdir() but the new posix path is rejected by other Cygwin
file routines so you are left in an inconsistent state.
Chris