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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; q=dns; s=default; b=hMpQqU | |
Y1qsvIzg+khRVGrdVzI7CpEK/XIUXeLZN/qkmqrxzG3++7U/8F5JHgRr+50q7dNZ | |
JqhNPkjdc8+84lqe2PHcCrCueDoY7BX4ljlBZIL2kyDGb7ZD+wio3Gpkf7hF1mZU | |
q+cg1lAyFkuF6z0F76wHKEwUtMLqnxMuBRyHI= | |
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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; s=default; bh=EpKa3PMKj9jK | |
XII2YyT5qFjBN60=; b=C6i/hsdivDptFlXP0bVfitku6+sOTUBUTtOKKlJspg4h | |
0+bhblhpuiuCIp7iTYLUwzW7Pckg6E1zKrWQOzQj2637kx526Kk3sbq5CdesmlOx | |
rbGOoz0k3BkHIASYo/9dN5TKcllCVpfmbvc5XPWQnzbZr18atTfjFr8ts/DlZc8= | |
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.4 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-lb0-f171.google.com |
X-Received: | by 10.152.234.9 with SMTP id ua9mr8271172lac.44.1421310249375; Thu, 15 Jan 2015 00:24:09 -0800 (PST) |
Message-ID: | <54B7791D.5080606@gmail.com> |
Date: | Thu, 15 Jan 2015 09:23:57 +0100 |
From: | David Macek <david DOT macek DOT 0 AT gmail DOT com> |
User-Agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
MIME-Version: | 1.0 |
To: | mingw-w64-public AT lists DOT sourceforge DOT net, cygwin AT cygwin DOT com |
Subject: | Re: [Mingw-w64-public] How to recognize symlinks in WIN32? |
References: | <CAAAui1HoT3Cvb87Ci1h=Gs9P51HZeJPzppVqD3MZ4TtNCHYaAw AT mail DOT gmail DOT com> <54B722F9 DOT 7060807 AT limegreensocks DOT com> <CAAAui1ELR+Yvz3-LWsBOzrhtSjg+SLPUCecxuW0ZUbBgiSLgxg AT mail DOT gmail DOT com> |
In-Reply-To: | <CAAAui1ELR+Yvz3-LWsBOzrhtSjg+SLPUCecxuW0ZUbBgiSLgxg@mail.gmail.com> |
--------------ms000500020808080403020606 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15. 1. 2015 4:11, Greg Jung wrote: > Yes I've seen that, if my second post appeared, the symlinks created with= cygwin are the ones giving me trouble. These links are invisible to CMD.e= xe, by someone's > design: >=20 > CYGWIN- created links in=20 > Directory of e:\cygwin64\lib\nox >=20 > 03/31/2014 09:39 AM <DIR> . > 03/31/2014 09:39 AM <DIR> .. > 07/01/2013 03:24 AM 336,710 libXpm-noX.a > 07/01/2013 03:24 AM 43,690 libXpm-noX.dll.a > 2 File(s) 380,400 bytes > 2 Dir(s) 85,657,726,976 bytes free I think these are cygwin emulated symlinks: They are visible, just not by default. I suspect they are marked with the s= ystem attribute. Use "dir /as" to show them. You should see a small size (i= n order of tens of bytes). You can instruct cygwin to create native NTFS symlinks, but due to a differ= ent design, there are some restrictions. See this: <https://cygwin.com/cygw= in-ug-net/using.html#pathnames-symlinks> > So the question becomes, "why do cygwin symlinks look different, and how = can a user program detect this attribute? I assume you could detect them using cygwin *stat calls. Maybe by compiling= against cygwin headers and cygwin1.dll, or maybe by extracting the relevan= t code from cygwin sources (you'd have to check the relevant licenses). --=20 David Macek --------------ms000500020808080403020606 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIMbzCCBjMwggUboAMCAQICAwxvejANBgkqhkiG9w0BAQsFADCBjDEL MAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsT IlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMT L1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50 IENBMB4XDTE0MTIzMTA0MDkwNFoXDTE2MDEwMTE1NDg1M1owSjEgMB4GA1UE AwwXZGF2aWQubWFjZWsuMEBnbWFpbC5jb20xJjAkBgkqhkiG9w0BCQEWF2Rh dmlkLm1hY2VrLjBAZ21haWwuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A MIIBCgKCAQEApuk8134+nkISIg7X7ABwKnVLgZsYi5kdXeeWpUrF1YLdLsZL pPjcUA3sk1QRpMMRVbWnCvAjwWI86js8V3sv8xDfD9DPf+f22NDQ9nC8gzsG VJkCr42+vdlwAAuG+hZ81fuRuswdsgMJWvz7uwUwMw2/UDoezIS7Sf9d5BsX h2VyPj1khIuMrvX2q5oVVQ/MV5QfqFtT7zCBPfuqhAROAO/nh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ZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFy dENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVudCBDQQID DG96MIGnBgsqhkiG9w0BCRACCzGBl6CBlDCBjDELMAkGA1UEBhMCSUwxFjAU BgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFs IENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNz IDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENBAgMMb3owDQYJKoZI hvcNAQEBBQAEggEAD1tzOdgPxPV8wEazvm7k8Oo7kP+0iJkDRY7vMKJFrSUl auYBv/an23vdYEh95RPdVxeyDTLH8ynnGHad1qL7KU9hNDJlJ/yCcMUxiMbx yVk92cxj9WzmkKotNNfdl76jBKYzCsvOUWzs5pFdW41RtnSHY4gVvqdvUs20 Jbo2dhSLEGKRkpvLnEP5jhMtAlz4BqE/ld3wMOmZSDhrJidTPGBsvmLHAq4z EZwN3ClKpxwhRexv81SPiuRpS3y83WpwJG5HNDqDZ7KydyGz34WFwT3VNncY gYXT8rr4tmnPUmHenowLYDIsSHSo+1dCQzL1Wts1MMvQaNi5ik3sde7bjQAA AAAAAA== --------------ms000500020808080403020606--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |