From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by sourceware.org (Postfix) with ESMTPS id 79BFB3AA9C55 for ; Wed, 21 Apr 2021 09:20:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 79BFB3AA9C55 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MFbmS-1lI3yi1sEA-00H5Qr for ; Wed, 21 Apr 2021 11:19:58 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 6D978A80EDD; Wed, 21 Apr 2021 11:19:57 +0200 (CEST) Date: Wed, 21 Apr 2021 11:19:57 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210421120457.cd5b6e966288aa62eee1a013@nifty.ne.jp> X-Provags-ID: V03:K1:LxgzwWXxCK5G/hfliSlzyEIV0tx1JwLwZF78c83sT2GhC0uPRN/ 4Rm6R8fDdwb8TEeupY1ePCoOgSamOhOl2L4iEGGhdB2GUKxu75Hu1TIQR7uXka6lOYg1CKo 723y3vHKyy/JjlJa0NHgrp7LT7XOrPSbvaLH0snoy7rtqHRH6hf5bVrstw3XsulITZ/T3xf gd6g8cojPoJTQkTkyqcxA== X-UI-Out-Filterresults: notjunk:1;V03:K0:xmwWCijISVY=:+TBIgkED6usJkM+K0chPvO FEI0MMZJRpCYR2uA2mKvK1rAy+QQ4kJ4DtF5PNKQlYBsw9vcEDTvNeBsKw9zGnCyyRisrqEUv g+ovNzbWL3UTk0YtL1keNwVvFne/5uytAOUQRh4EOfeDHKKQ7Ye42uN0+62N6Id5alEQgmk+/ KX7yUiFlewG6c/+vJrQA212kFscBnLrl8sHu/8Q+WUiunIX3OLyif/jVBol6C5SFtEZBNF/g3 Qpb/yYBKz4a67P4i75ZQ0IH+Im3KNY+7YEdZpN2ubAtnRiipjRXjonSP3ZEMfWEVhYJV5ERuX +j6fnmnx41Vg9QScr+FE1T9BqKF+7awYHtBaXjuy9y2Cpe15eYjF/vQLSeG6VNr8ELEshG74P Jvt5UrpSjQ0n6xynNwJ5vaJ/MENZAuPv1NRIpiNnHUS3YQFU7H5IuNtJpaY/NGZd1oRSywFse jUjNM7K0H3Oq+k4RgFYy9QCJgmt7fcXBFSgB9MCpqu5K1B2DLEWawPwDvABpAOn2+s5WfdXGO 30GzcUmJGAnUtgCBG+BgKs= 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_H3, RCVD_IN_MSPIKE_WL, 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 09:20:11 -0000 Hi Takashi, 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. Thanks, Corinna > > commit 456c3a46386f38887407603b2c64b7f63a4871c5 > Author: Corinna Vinschen > Date: Mon Apr 19 14:49:14 2021 +0200 > > Cygwin: path_conv: Try to handle native symlinks more sanely > > For local paths, add a check if the inner path components contain native > symlinks or junctions. Compare the incoming path with the path returned > by NtQueryInformationFile(FileNameInformation). If they differ, there > must be at least one native symlink or junction in the path. If so, > treat the currently evaluated file as non-existant. This forces > path_conv::check to backtrack inner path components until we eliminated > all native symlinks or junctions and have a normalized path. > > Signed-off-by: Corinna Vinschen > > Reverting this commit resolves the issue. > > 64 bit cygwin does not seem to be affected. Could you please > have a look? > > -- > Takashi Yano > > -- > Problem reports: https://cygwin.com/problems.html > FAQ: https://cygwin.com/faq/ > Documentation: https://cygwin.com/docs.html > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple