delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; q=dns; s=default; b=Ct4D | |
poYpqNGJMqlXDxX0/fTHrKMno8qAGGSkJcFI1YlQm3f35nw1kgR3jLX1JttrzGEw | |
8F7AWErI3o+h5gVApKxSRIKbL0r71mT6aKRE1iIj1Zl2YLTgnnXcm+xt2Bi42pF0 | |
7BSNZVq7vV0uf5lfmsS6XzpRP/PO4VYxaDfK+bg= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type; s=default; bh=vwfpBJYm9o | |
TM2Xx8VWsJb+/8iho=; b=vOcDAC5gRtOrdZcz3GUQ94tIBbgi40x9AwTh5/V3RZ | |
DwQi4H3wCSuUUjvTgnoCE0hmZ7jTjuBxB6Ob87u19bMaG9V8npkb85edvGZtcZWM | |
HjeYX2Cd2s9oBPJ4DGrOc7xMXozPC3Q5UK8OA1kC/P8211kRvlOxVwAjVBn7/95U | |
A= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-wm0-f41.google.com |
X-Received: | by 10.194.184.104 with SMTP id et8mr65430952wjc.87.1448805660517; Sun, 29 Nov 2015 06:01:00 -0800 (PST) |
Subject: | Re: Symlink targets dereferenced when winsymlinks:native |
To: | cygwin AT cygwin DOT com |
References: | <564E1AA0 DOT 6070001 AT gmail DOT com> <0D835E9B9CD07F40A48423F80D3B5A702E9519BE AT USA7109MB022 DOT na DOT xerox DOT net> <564E3C5B DOT 10006 AT gmail DOT com> <20151120092618 DOT GA20182 AT calimero DOT vinschen DOT de> <5654BFC3 DOT 9090901 AT gmail DOT com> <20151126115339 DOT GK2755 AT calimero DOT vinschen DOT de> |
From: | David Macek <david DOT macek DOT 0 AT gmail DOT com> |
Message-ID: | <565B0516.3000109@gmail.com> |
Date: | Sun, 29 Nov 2015 15:00:54 +0100 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <20151126115339.GK2755@calimero.vinschen.de> |
X-IsSubscribed: | yes |
--------------ms070407060906070000020103 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 26. 11. 2015 12:53, Corinna Vinschen wrote: > On Nov 24 20:51, David Macek wrote: >> My test command is `touch 1 && ln -s 1 2`, then I clean up by `rm 1 2`. = Now the results: >> >> in /bin/: relative >> in /: absolute >> in ~/ (/cygdrive/c/Users/username/): relative >> in /cygdrive/w/: absolute >> >> Note that W: is a permasubst (created using `DOSDevices` in registry), w= hich would explain the different behaviour (but not excuse it :), but I don= 't see why / is also special. Even if only one from the link pair (target o= r source) is in a relative-symlink-unsupporting path, I get an absolute pat= h. >> >> Can you confirm? >=20 > Yes, thanks for this part of the analysis. There was a typo in the > code checking the relative paths. The check for a drive colon in the > pathname used a wrong offset into the path string, which ultimately > always created an absolut path to the target if the path of the > target was in a drive's root dir or one level below that. >=20 > I fixed that in the repo and created a new developer snapshot for > testing: https://cygwin.com/snapshots/ Please give it a try. I get relative symlinks in all of my test cases now. Thanks. --=20 David Macek --------------ms070407060906070000020103 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG 9w0BBwEAAKCCDG8wggYzMIIFG6ADAgECAgMMb3owDQYJKoZIhvcNAQELBQAw gYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSswKQYD VQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYD VQQDEy9TdGFydENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJtZWRpYXRlIENs aWVudCBDQTAeFw0xNDEyMzEwNDA5MDRaFw0xNjAxMDExNTQ4NTNaMEoxIDAe BgNVBAMMF2RhdmlkLm1hY2VrLjBAZ21haWwuY29tMSYwJAYJKoZIhvcNAQkB FhdkYXZpZC5tYWNlay4wQGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD ggEPADCCAQoCggEBAKbpPNd+Pp5CEiIO1+wAcCp1S4GbGIuZHV3nlqVKxdWC 3S7GS6T43FAN7JNUEaTDEVW1pwrwI8FiPOo7PFd7L/MQ3w/Qz3/n9tjQ0PZw vIM7BlSZAq+Nvr3ZcAALhvoWfNX7kbrMHbIDCVr8+7sFMDMNv1A6HsyEu0n/ XeQbF4dlcj49ZISLjK719quaFVUPzFeUH6hbU+8wgT37qoQETgDv54TbMak8 YxKaSvEodRbiE+9YQDVh2E8rwMGzdzDMyXkpgwHAL5cjVH46qy8Ajzm6op2R Zaske2uDRtx21aNyMJ6y0nGGbO8RP+oe+7BVl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JbnRl cm1lZGlhdGUgQ2xpZW50IENBAgMMb3owgacGCyqGSIb3DQEJEAILMYGXoIGU MIGMMQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkG A1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzE4MDYG A1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmltYXJ5IEludGVybWVkaWF0ZSBD bGllbnQgQ0ECAwxvejANBgkqhkiG9w0BAQEFAASCAQA04Mo80kqnM0HdUI/F vrSv+xsFzm/kZpubpedsxdA0K//N4M+pM1ny1pGPL6w3OTl6TrIa0iBddq1p ZDYBwKF//lQIjyjZa3Q1n6h3S9lfByL27LqZQZkJcWFi3xCer6z7cwf0vpXD QdtYvWMq0ALS6yu6OJUfXSB/TU7kbW2SiUjRFhc9zH3umdpra2c+sukBZYTT C5QR505wOGCUWRjyOoR5eCTEPkMDUY1Oz7Faom5RFMVDOFf1qbfEaSJaIp5q /lBo3/nrlfykgRClgzWpSan9ilNoGMkuZYnEvIb6OzUxKeMu7ueiNYAelmDg HvmmhxfIjvdrtspPyIl8YeI/AAAAAAAA --------------ms070407060906070000020103--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |