public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: mapping root directory to SystemDrive / CurrentDrive
Date: Tue, 03 Aug 2004 10:51:00 -0000	[thread overview]
Message-ID: <20040803105143.GQ31522@cygbert.vinschen.de> (raw)
In-Reply-To: <200408021452.34000.gernot.hillier@siemens.com>

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/

  reply	other threads:[~2004-08-03 10:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-02 12:52 Gernot Hillier
2004-08-03 10:51 ` Corinna Vinschen [this message]
2004-08-03 11:17   ` Gernot Hillier
2004-08-03 11:50     ` Corinna Vinschen
2004-08-03 12:00       ` Gernot Hillier
2004-08-03 13:45         ` mapping root directory to SystemDrive / CurrentDrive (documentation change needed) Christopher Faylor
2004-12-27 18:09           ` Joshua Daniel Franklin
2004-12-27 21:08             ` Pierre A. Humblet
2004-12-28  0:13               ` Joshua Daniel Franklin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040803105143.GQ31522@cygbert.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).