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 D211E3858D35 |
Authentication-Results: | sourceware.org; |
dmarc=fail (p=none dis=none) header.from=cl.cam.ac.uk | |
Authentication-Results: | sourceware.org; |
spf=pass smtp.mailfrom=return.smtpcorp.com | |
From: | David Allsopp <David DOT Allsopp AT cl DOT cam DOT ac DOT uk> |
To: | The Cygwin Mailing List <cygwin AT cygwin DOT com> |
Subject: | RE: Cygwin setup writing incorrect symlinks for native |
Thread-Topic: | Cygwin setup writing incorrect symlinks for native |
Thread-Index: | AdgC6QhEcjWCNf+4QROdOTByZUljCgALkAMAAAE1U0AAMFR2AABXrioA |
Date: | Sun, 9 Jan 2022 09:35:45 +0000 |
Message-ID: | <1a271142acbc4e2188fc3b6981fa03e0@metastack.com> |
References: | <000201d802ea$e13fd790$a3bf86b0$@cl.cam.ac.uk> |
<e445bd39-b4cb-5d12-1182-b142ff4efe3e AT dronecode DOT org DOT uk> | |
<53ca12d5a17d43089bc38ef67e4cc858 AT metastack DOT com> | |
<1afc3b10-e19d-5b97-4ca7-b143f3262e67 AT dronecode DOT org DOT uk> | |
In-Reply-To: | <1afc3b10-e19d-5b97-4ca7-b143f3262e67@dronecode.org.uk> |
Accept-Language: | en-GB, en-US |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
x-originating-ip: | [172.16.0.127] |
MIME-Version: | 1.0 |
X-Scanned-By: | MIMEDefang 2.65 on 62.31.23.242 |
Feedback-ID: | 614951m:614951apMmpqs:614951sAnFcgr92W |
X-Report-Abuse: | Please forward a copy of this message, including all headers, |
to <abuse-report AT smtp2go DOT com> | |
X-Smtpcorp-Track: | 1n6lPd4ba5YyDf.2hxl085yvUv6j |
X-Spam-Status: | No, score=-1.1 required=5.0 tests=BAYES_00, |
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_EXEURI, SPF_HELO_PASS, | |
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.4 (2020-01-24) 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-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> | |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
Jon Turney wrote: > On 06/01/2022 16:45, David Allsopp wrote: > > Jon Turney wrote: > >> On 06/01/2022 10:46, David Allsopp wrote: > >>> Running Cygwin setup 2.912 with --symlink-type native (or > >>> CYGWIN=winsymlinks:native) is not correctly translating all symlinks. > >>> A default install has these faulty ones: > >>> > >>> /etc/pki/tls/cert.pem -> > >>> \??\/etc\pki\ca-trust\extracted\pem\tls-ca-bundle.pem > >>> /etc/pki/tls/certs/ca-bundle.crt -> > >>> \??\/etc\pki\ca-trust\extracted\pem\tls-ca-bundle.pem > >>> /etc/pki/tls/certs/ca-bundle.trust.crt -> > >>> \??\/etc\pki\ca-trust\extracted\openssl\ca-bundle.trust.crt > >>> /etc/ssl/certs -> \??\/etc\pki\tls\certs /lib/security/cacerts -> > >>> \??\/etc\pki\ca-trust\extracted\java\cacerts > >>> /usr/share/doc/groff-1.22.4/pdf/mom-pdf.pdf -> > >>> \??\/usr\share\doc\groff-1.22.4\examples\mom\mom-pdf.pdf > >> > >> > >> Thanks for reporting this. > >> > >> Yes, it seems this is messed up where the target of the symlink is an > >> absolute path. > >> > >> I've uploaded setup 2.913 with an attempted fix. > >> > >> https://cygwin.com/setup/setup-2.913.x86_64.exe > >> https://cygwin.com/setup/setup-2.913.x86.exe > >> > >> Please try that (you'll have to reinstall the effected packages), and > >> see if it improves things for you? > > > > Thank you! This fixes it for the Cygwin side, although the symlinks are > > still technically not right from the Windows side. They're still showing > > up prefixed \??\. > > > > It's an age since I mucked around with those functions - IIRC the API > > function for writing them adds the \??\ itself and doesn't expect it > > to have been supplied? However, when you read the reparse point you > > have to remember to remove it yourself because who needs consistency > > :o) > > Thanks for testing. It seems I still didn't have this quite right and > these symlinks just happened to work for cygwin, but not native tools. > > Please try > > https://cygwin.com/setup/setup-2.914.x86_64.exe > https://cygwin.com/setup/setup-2.914.x86.exe I'm afraid that's just changed the \??\ to \\?\ on those symlinks. All best, David -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |