delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/28/19:48:37

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=hZ85
Uwj4Drl8N4XB5eKYeCiOa6XKWQaIfPw74yjbDX0UzD08iwyqb5kwaHdHBbC8aF1Y
cM81caPX7noQGp2D+wH3ud5jvpsYH6ND3qQg4Rh/Igku7STM0SYXCIyGU+6z9yG2
dNU+x8wMSUShp8H7sKJJFb9fJMoX/lNgsbYCVsk=
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=Ng5QosOD8C
Qle239e0OT1C+C1LI=; b=slBNvbFtQVDcZjySuYITSWOTuQsl6lLVftev7gPsf2
2d04vGlMiIr6eVeOCE3++8A8ny6CyYQUBI61C9wNq2pIioRO/1oh/L6PpfuFBpUT
+yBl5jqNhQnRjzaz1wX3CG3oqIXmCeEkHPLHMoyGtwIdX6BJWC2MoS1NsYNYC4mZ
g=
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.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=stem, Repin, Bottom, repin
X-HELO: mx1.redhat.com
Subject: Re: `CYGWIN=winsymlinks:nativestrict`, `ln -s target link` fails if target doesn't exist
To: cygwin AT cygwin DOT com
References: <CAPTiy3NUXprQL6V0+Njc2L7XfhpqtC7oWFwNMhOEFZ2OZmddoQ AT mail DOT gmail DOT com> <1606116423 DOT 20160429020650 AT yandex DOT ru>
From: Eric Blake <eblake AT redhat DOT com>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Message-ID: <5722A131.6010001@redhat.com>
Date: Thu, 28 Apr 2016 17:48:01 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <1606116423.20160429020650@yandex.ru>
X-IsSubscribed: yes

--S0vjALULXFroJgk2QmaBKctbDfX4gNLOV
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 04/28/2016 05:06 PM, Andrey Repin wrote:
>> Bottom line, I think the native symlink creation code should be
>> checked and a possibility should be added to create links to
>> non-existent targets, rather than the current behavior of failing.
>=20
> This is actually an arguable behavior, even in Linux. I can imagine the
> behavior is "undefined" in such a case.

POSIX says a symlink to a missing target is perfectly well-defined (you
can't stat() through it, but you can readlink() it). But Windows native
symlinks can't do that.  So the problems you are encountering all stem
from the fact that you are trying to make Windows do something it can't.

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--S0vjALULXFroJgk2QmaBKctbDfX4gNLOV
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJXIqExAAoJEKeha0olJ0NqBNgIAKV+AAx5/rwhJ/f0P17ZS45A
DFDdSU0QI7rVM1H/Zk3s47DJtw/ru7ulmuUhKvEMEdsJ2J3W/vejospEWf8l+XBj
hatBzgt5HNYtA7Kn7Z8IuTS2te/C53nBQgv7pKCxkmravcKI+kXtoab6N+0Xq/jC
kiGdjqAU86D7S1wx94cc4mBkQj6Pnwx3AWI6Z3roeMJdFXjitPurPy0zfzR8ANCo
990LDDVKNC8/291fgiUBHy3I31g19cNVc8vTM45001tlG7TAhhoO1a8Gqqx7pkj2
KMjFQnBqXX2eKGp4tqJinr0Ykr2/kUHfoNty8mzNBBtmxq6Vd7wC3AGYctBaVFk=
=odsj
-----END PGP SIGNATURE-----

--S0vjALULXFroJgk2QmaBKctbDfX4gNLOV--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019