From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by sourceware.org (Postfix) with ESMTPS id AA09838930D8 for ; Wed, 21 Apr 2021 15:49:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AA09838930D8 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MZkxj-1m5xDN0oVj-00WrCv for ; Wed, 21 Apr 2021 17:49:42 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id A2F8EA80EDD; Wed, 21 Apr 2021 17:49:41 +0200 (CEST) Date: Wed, 21 Apr 2021 17:49:41 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cannot access system32 directory from 32 bit cygwin after the commit 456c3a46 Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20210421120457.cd5b6e966288aa62eee1a013@nifty.ne.jp> <263534123.20210421175816@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <263534123.20210421175816@yandex.ru> X-Provags-ID: V03:K1:7OItv7EduQTzv8Yd56tvtbddCVTT4oL4oi1HSFrTkuXINEEgtsI RtxpZxyb/udi52kCDFdJwgelQ+JJnXsCCOuf9/GKrZBwKLRdgQB/FQcyqN8R6uWwymAo5B+ HPHYT/bKWPWcUpsFRsb4WHc835xxHlpiEIag9jMDeWsA/GwuqM8/KM/byxrpPrWzhxJt5C9 qRgWBdmByQbApzc6HsiGQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:NWoFBlcY85I=:MeEZbnGJ9/o9AJPw+yu0VD /fkbiQhbSq7/xYmOGSyguapsPXL3gT9k5OUMs+Bj2TSpj2p5ePDIEFkY/xZYiQvX1BHCxmOey 2kdflBrr2MQHtSvFFDx/8FpZDuBayqaIsazJcLEkHyPXLtdFwaWCuYiA1944Ljt6+51Q3NUnm y+NCYtVTw5V3yK/fPfPuWny0VBWHeS45UcZiH1uA3icQMCsuQYXjLjsCuM5XnJhU5xroeJbfn UvQ0W8rmSe+3ddTY6GQemUvpmbj5RKG6orq/Gxws/D5JPDEg4pLsoVySCDm/8wQYqaIK6dY5H Ta7S/j8k5Y9FTvGjcCw+nuc3qFO49xdqbcosigfHFgMSVXXZF91ZSEWLXY/AYwaPFYgimXmQV dt0L/6RpdP4Kv3gZKn3HtSJwibcnm2mH2Z54eZi+6BlbglILNeKinDVSSCuavLF8sC7iHlqIl IqIb2FqmEAWOedHEvWVxYeahTGZ5n9esVv+j7guljfpE0ihaVw4EoqJyLC0Orh9U90lbNuBtb d96Fe/Dz31O33n6Fkda2HI= X-Spam-Status: No, score=-100.1 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2021 15:49:50 -0000 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