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]

[Patch]: c:.


I have run more tests and noticed that c:. and c:..
are now interpreted as c:/
That's because of the new code that strips trailing dots
and spaces. 

A patch is attached. It works fine on WinME (ls, cd, etc...)
but I am wondering how NtCreateFile reacts to that syntax
as well as to c:xxxx 
Depending on the answer we may have to treat these forms in
a new way (perhaps just forbid them).

If we do not use the patch, then chdir must be tuned to
handle these paths appropriately (they are not recognized by
isabspath, although they are absolute).

Paths such as c:../.. are not handled properly, but that's
not a regression.

Windows never stops amazing me!

Pierre

2004-05-16  Pierre Humblet <pierre.humblet@ieee.org>

	* path.c {path_conv::check): Do not strip trailing dots in
	c:. and c:..

Attachment: dot.diff
Description: Text document


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