From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94519 invoked by alias); 28 Apr 2016 23:48:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 93937 invoked by uid 89); 28 Apr 2016 23:48:15 -0000 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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 28 Apr 2016 23:48:03 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 83E8A3B741 for ; Thu, 28 Apr 2016 23:48:02 +0000 (UTC) Received: from [10.3.113.21] (ovpn-113-21.phx2.redhat.com [10.3.113.21]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3SNm27R012728 for ; Thu, 28 Apr 2016 19:48:02 -0400 Subject: Re: `CYGWIN=winsymlinks:nativestrict`, `ln -s target link` fails if target doesn't exist To: cygwin@cygwin.com References: <1606116423.20160429020650@yandex.ru> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <5722A131.6010001@redhat.com> Date: Fri, 29 Apr 2016 00:06:00 -0000 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> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="S0vjALULXFroJgk2QmaBKctbDfX4gNLOV" X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00633.txt.bz2 --S0vjALULXFroJgk2QmaBKctbDfX4gNLOV Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 763 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" Content-length: 604 -----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--