[Patch]: c:.

Corinna Vinschen vinschen@redhat.com
Mon May 17 08:57:00 GMT 2004

On May 16 18:20, Pierre A. Humblet wrote:
> There is a bigger problem: NtCreateFile does not support the format 
> c:nodirsep (it's most likely handled by the Windows layer above NT). 

Right.  Native NT only supports absolute paths.  Relative paths are
either converted to absolute paths in the Win32 layer or you can
specify them relative to the open handle to an already opened directory.

> Thus to support it, Cygwin would have to emulate Windows and interact 
> with the odious environment variables.

Do we really want to support it?

> Things such as cd, ls, touch, .. which do not require NtCreateFile,
> still work fine in cvs, cat doesn't.
> I don't think it's acceptable to have some system calls work while
> other fail just because of the filename format.
> I see two realistic possibilities on NT:
> 1) Reject filenames of the form c:nodirsep, except the naked "c:"
> or 2) Silently add a / after the :
> If we decide on 2), I would apply it to Win9x and NT for uniformity.
> If we decide on 1), I would only apply it on NT only (why fail on 9X
> if we can succeed?). 

I would prefer version 2.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

More information about the Cygwin-patches mailing list