Patch for cd .../. bug
Wed Mar 6 17:19:00 GMT 2002
> >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.
More information about the Cygwin-patches