From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-04.nifty.com (conssluserg-04.nifty.com [210.131.2.83]) by sourceware.org (Postfix) with ESMTPS id 89B783856DC2 for ; Tue, 2 Aug 2022 04:12:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 89B783856DC2 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 2724CH47012804 for ; Tue, 2 Aug 2022 13:12:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 2724CH47012804 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1659413537; bh=Aw099F1rLTf/uLMXrZ/HQb76op5DzIHC7Pt6LWt4vcM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=hVas63RW2/+fiuIDsmY0rWDM72AVWVC889y1+akU++CB2pkXHVQjwmoOmjB7UJ8jU VmmeZaIWDjt2fIjPhKZH9damP7JDZjIqLpiBRzfh398hEtA+U/1htnAHIqYUN77Pd7 eWA0feA7GT/MkDo+jbu2c8JqIggk3WVJotCv3BN+pQTxiXZ54/PoT4FXxSItVPrR/K p/cfTY/QJoFG/2RDis54Mcys6CAxdIWGgfHr8UY/np9sZXp8aywjCS3ZZmHJ7+vTV/ cWOK9AMlXWKX2dZBLZ4tI8SeHEIbOSZ1/sNHs78vJrKPzaZz6w2E3XeMwDEx8Hozq3 hCQy5yVFmS50g== X-Nifty-SrcIP: [119.150.44.95] Date: Tue, 2 Aug 2022 13:12:17 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: Issues with Cygwin64 on Windows11 Message-Id: <20220802131217.5ad7aa040f25a9b4e9266979@nifty.ne.jp> In-Reply-To: References: <20220731172132.cf4d0a2d6acf2f6af96bb1c2@nifty.ne.jp> <20220801092349.860472b4da6f3a781eb3ffc4@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__2_Aug_2022_13_12_17_+0900_fBNMEW42JRRHEO8O" X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Tue, 02 Aug 2022 04:12:42 -0000 This is a multi-part message in MIME format. --Multipart=_Tue__2_Aug_2022_13_12_17_+0900_fBNMEW42JRRHEO8O Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 1 Aug 2022 21:14:52 -0400 Ken Brown wrote: > On 7/31/2022 8:23 PM, Takashi Yano wrote: > > On Sun, 31 Jul 2022 17:21:32 +0900 > > Takashi Yano wrote: > >> On Sun, 31 Jul 2022 09:11:17 +0300 > >> Dimax wrote: > >>> Hello. > >>> I've never had much luck with Cygwin64 and used the 32 bit version before. > >>> Today I have no choice and I've installed Cyg64 on my new Win11 PC. > >>> > >>> Here is the first major issue I faced. I can not create symbolic links: > >>> > >>> Alex@Alexo ~ > >>> $ ls /cygdrive/C/XOL/ > >>> > >>> Alex@Alexo ~ > >>> $ ln -s /cygdrive/C/XOL/ work > >>> > >>> Alex@Alexo ~ > >>> $ ls -all work > >>> lrwxrwxrwx 1 Alex None 11 Jul 31 09:09 work -> /mnt/C/XOL/ > >>> > >>> Alex@Alexo ~ > >>> $ cd ~/work/ > >>> -bash: cd: /home/Alex/work/: No such file or directory > >>> > >>> The link is created but I can not use it. > >>> The only thing that I did not standard was to call installation folder > >>> C:\Cygwin instead of default C:\Cygwin64 > >>> > >>> Any help would be highly appreciated. > >> > >> Thanks for the report. This seems to happen only when > >> the drive letter is uppercase. > >> > >> ln -s /cygdrive/c/XOL/ work > >> works. > >> > >> Anyway, I think this is a problem of cygwin1.dll. > >> > >> This > >> work -> /mnt/C/XOL/ > >> should be > >> work -> /cygdrive/C/XOL/ > >> shouldn't it? > >> > >> It guess this is a bug in the code added for WSL > >> compatibility. > > > > I found the patch attached solves the issue. > > > > Corinna, WDYT? > > I'm not Corinna, but replacing oldpath by normpath doesn't seem like the right > thing to do at the time of symlink creation. If I create a symlink under > Cygwin, I expect the target to be used under Cygwin exactly as I enter it. The Hmm, that's the point. > internal replacement of the cygdrive prefix by /mnt for WSL compatibility is > fine, as long as I never see it except under WSL. But since WSL doesn't > recognize /mnt/, I don't think Cygwin should convert > //. Users who want WSL > interoperability just have to use lowercase drive letters. Then, what about the v2 patch attached? > I'm tempted to go even further and say that Cygwin shouldn't ever convert the > cygdrive prefix to /mnt, on the grounds that users who care about WSL > interoperability can simply use /mnt as their cygdrive prefix. But maybe that > ship has sailed. -- Takashi Yano --Multipart=_Tue__2_Aug_2022_13_12_17_+0900_fBNMEW42JRRHEO8O Content-Type: text/plain; name="v2-0001-Cygwin-path-Make-some-symlinks-to-cygdrive-work.patch" Content-Disposition: attachment; filename="v2-0001-Cygwin-path-Make-some-symlinks-to-cygdrive-work.patch" Content-Transfer-Encoding: base64 RnJvbSBhMTkwMTg2YzA3NDQ5YzdmOWQwOGExM2MyNmI4N2NhZDNmMjcwYTMzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQ0KRnJvbTogVGFrYXNoaSBZYW5vIDx0YWthc2hpLnlhbm9AbmlmdHkubmUu an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