This is the mail archive of the cygwin 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]

Re: mapping root directory to SystemDrive / CurrentDrive


On Aug  2 14:52, Gernot Hillier wrote:
> Hi!
> 
> We use some Cygwin tools without Cygwin mounts. The reason for this is (was) 
> that we use several Cygwin versions from different network shares in parallel 
> (i.e. we have different \Cygwin trees on different drives on our Windows 
> hosts).
> 
> With earlier Cygwin versions, this worked without any problem as Cygwin always 
> mapped "/" to the CurrentDrive (not the SystemDrive, as it is documented in 
> http://www.cygwin.com/cygwin-ug-net/using.html). With the current Cygwin 
> version, this seems to be mixed: the open() call seems to map "/" to the 
> SystemDrive while stat() maps "/" to the current drive.
> 
> I can certainly understand that it was our fault to rely on something which 
> was not documented. Nevertheless, this was a real nice workaround for us to 
> be able to use different Cygwin tools based on different Cygwin trees easily 
> (it was even possible to let them run in parallel).
> 
> And anyway, I assume that it is a bug that both system calls behave different, 
> right?

That's a result of using NtCreateFile instead of CreateFile.  Native NT
calls behave slightly different than Win32 calls.  However, as you said,
you're relying on undocumented behaviour.  I'm sorry but we won't revert
to Win32 calls just to keep an undocumented behaviour running.


Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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