www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
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 |
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 <takashi DOT yano AT nifty DOT ne DOT jp> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Issues with Cygwin64 on Windows11 |
Message-Id: | <20220802131217.5ad7aa040f25a9b4e9266979@nifty.ne.jp> |
In-Reply-To: | <c9feffc3-a4e2-6419-2e80-10322f70cf49@cornell.edu> |
References: | <CAF9kqNEufMLALpfp-HwYaApoy=Y8ce2LBnD_YCY06YwEc_6guw AT mail DOT gmail DOT com> |
<20220731172132 DOT cf4d0a2d6acf2f6af96bb1c2 AT nifty DOT ne DOT jp> | |
<20220801092349 DOT 860472b4da6f3a781eb3ffc4 AT nifty DOT ne DOT jp> | |
<c9feffc3-a4e2-6419-2e80-10322f70cf49 AT cornell DOT edu> | |
X-Mailer: | Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) |
Mime-Version: | 1.0 |
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 AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 AT Alexo ~ > >>> $ ls /cygdrive/C/XOL/ > >>> > >>> Alex AT Alexo ~ > >>> $ ln -s /cygdrive/C/XOL/ work > >>> > >>> Alex AT Alexo ~ > >>> $ ls -all work > >>> lrwxrwxrwx 1 Alex None 11 Jul 31 09:09 work -> /mnt/C/XOL/ > >>> > >>> Alex AT 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/<uppercase drive letter>, I don't think Cygwin should convert > /<cygdrive prefix>/<uppercase drive letter>. 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 <takashi DOT yano AT nifty DOT ne DOT jp> --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 anA+DQpEYXRlOiBNb24sIDEgQXVnIDIwMjIgMDk6MDI6MjMgKzA5MDANClN1YmplY3Q6IFtQQVRD SCB2Ml0gQ3lnd2luOiBwYXRoOiBNYWtlIHNvbWUgc3ltbGlua3MgdG8gL2N5Z2RyaXZlLyogd29y ay4NCg0KLSBQcmV2aW91c2x5LCBzb21lIHN5bWJvbGljIGxpbmtzIHRvIC9jeWdkcml2ZS8qICgv Y3lnZHJpdmUvQywNCiAgL2N5Z2RyaXZlLy4vYywgL2N5Z2RyaXZlLy9jLCBldGMuKSBkaWQgbm90 IHdvcmsuIFRoaXMgcGF0Y2ggZml4ZXMNCiAgdGhlIGlzc3VlLg0KICBBZGRyZXNzZXM6IGh0dHBz Oi8vY3lnd2luLmNvbS9waXBlcm1haWwvY3lnd2luLzIwMjItSnVseS8yNTE5OTQuaHRtbA0KLS0t DQogd2luc3VwL2N5Z3dpbi9wYXRoLmNjIHwgNiArKysrKy0NCiAxIGZpbGUgY2hhbmdlZCwgNSBp bnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0pDQoNCmRpZmYgLS1naXQgYS93aW5zdXAvY3lnd2lu L3BhdGguY2MgYi93aW5zdXAvY3lnd2luL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12_17_+0900_fBNMEW42JRRHEO8O Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --Multipart=_Tue__2_Aug_2022_13_12_17_+0900_fBNMEW42JRRHEO8O--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |