From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::607]) by sourceware.org (Postfix) with ESMTPS id E78AC384C003 for ; Wed, 21 Apr 2021 15:05:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E78AC384C003 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon@yandex.ru Received: from myt5-4fa6d87d1832.qloud-c.yandex.net (myt5-4fa6d87d1832.qloud-c.yandex.net [IPv6:2a02:6b8:c12:2507:0:640:4fa6:d87d]) by forward104o.mail.yandex.net (Yandex) with ESMTP id CF79094271B for ; Wed, 21 Apr 2021 18:05:02 +0300 (MSK) Received: from myt3-5a0d70690205.qloud-c.yandex.net (myt3-5a0d70690205.qloud-c.yandex.net [2a02:6b8:c12:4f2b:0:640:5a0d:7069]) by myt5-4fa6d87d1832.qloud-c.yandex.net (mxback/Yandex) with ESMTP id tgJ13TBntz-52JuXtkl; Wed, 21 Apr 2021 18:05:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1619017502; bh=ix7V5uPzwWZS3cXxfVKmAI9lrdWiYkmwWsvXyLbFK94=; h=In-Reply-To:Subject:To:From:Message-ID:References:Date:Reply-To; b=b0sAzbymQ+GeTsVYloMPnTTvjuRGMhvIS4EGTLfqewutiyeJlgEmPYe1BKbiCwUFP g41ol06tSOpjyWhqZpHvB3EVKr9MWXzkgsTh5VQdd9uI01PWEoDXvZ3tZAXxjVZD9s BV2NP/8qd37iEUferU6MsmL+hZKjV0sHdFilbLio= Authentication-Results: myt5-4fa6d87d1832.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt3-5a0d70690205.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id kANrixmZ6p-52Lagi8V; Wed, 21 Apr 2021 18:05:02 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 21 Apr 2021 14:58:16 -0000 Date: Wed, 21 Apr 2021 17:58:16 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <263534123.20210421175816@yandex.ru> To: Corinna Vinschen via Cygwin , cygwin@cygwin.com Subject: Re: Cannot access system32 directory from 32 bit cygwin after the commit 456c3a46 In-Reply-To: References: <20210421120457.cd5b6e966288aa62eee1a013@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_THEBAT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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:05:16 -0000 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. >> >> 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? -- With best regards, Andrey Repin Wednesday, April 21, 2021 17:54:23 Sorry for my terrible english...