public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cannot access system32 directory from 32 bit cygwin after the commit 456c3a46
Date: Wed, 21 Apr 2021 17:49:41 +0200	[thread overview]
Message-ID: <YIBJldZX0r6PcLba@calimero.vinschen.de> (raw)
In-Reply-To: <263534123.20210421175816@yandex.ru>

On Apr 21 17:58, Andrey Repin wrote:
> Greetings, Corinna Vinschen via Cygwin!
> 
> > On Apr 21 12:04, Takashi Yano via Cygwin wrote:
> >> Hi Corinna,
> >> 
> >> I noticed the problem that /cygdrive/c/Windows/System32 directory
> >> can be no longer accessed from 32 bit cygwin (WOW64) after the
> >> commit:
> 
> > The problem here is the File System Redirector,
> > https://docs.microsoft.com/en-us/windows/win32/winprog64/file-system-redirector
> 
> > This thing is really a problem because it break every, otherwise
> > sane assumption.  Hmm, bummer.  I need some time to think about
> > a solution here.
> 
> As far as I'm aware, it can be disabled on application request.
> I know at least one 32-bit application (Far Manager) that works through
> redirector, but it might not be as easy for a library.

That doesn't help.  We *want* the redirector to work, otherwise we would
end up in the wrong dir in terms of the system32 dir and sysnative
wouldn't work at all in Cygwin, without going to great lengths to
emulate the FSR by ourselves.

I pushed a patch and created new snapshots.  After some mulling I
decided it's not worth to introduce some complicated routine for just
WOW64, so Cygwin simply skips the code from commit 456c3a46386f3 now, if
the incoming path is pointing inside the Windows dir on WOW64.

Eventually, we should really start thinking about dropping 32 bit
support, I guess.  Only 17 years left until time_t overflow...


Corinna

  reply	other threads:[~2021-04-21 15:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21  3:04 Takashi Yano
2021-04-21  8:49 ` Andrey Repin
2021-04-21  9:10   ` Takashi Yano
2021-04-21  9:22     ` Andrey Repin
2021-04-21 10:07       ` Takashi Yano
2021-04-21  9:56   ` Marco Atzeri
2021-04-21 10:09     ` Takashi Yano
2021-04-21  9:19 ` Corinna Vinschen
2021-04-21 14:58   ` Andrey Repin
2021-04-21 15:49     ` Corinna Vinschen [this message]
2021-04-21 16:04       ` Brian Inglis
2021-04-22  8:16         ` Csaba Raduly
2021-04-22  8:26           ` Brian Inglis
2021-04-21 15:49   ` Bill Stewart
2021-04-21 16:47     ` Corinna Vinschen
2021-04-21 17:57       ` Bill Stewart
2021-04-21 19:28         ` Corinna Vinschen
2021-04-21 21:03           ` Bill Stewart

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=YIBJldZX0r6PcLba@calimero.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).