From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105642 invoked by alias); 29 Apr 2016 04:50:19 -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 105625 invoked by uid 89); 29 Apr 2016 04:50:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*r:sk:postmas, reaction X-HELO: smtp.ht-systems.ru Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 29 Apr 2016 04:50:16 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1aw0NW-0006DZ-6o ; Fri, 29 Apr 2016 07:50:10 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 29 Apr 2016 04:41:14 -0000 Date: Fri, 29 Apr 2016 05:23:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1924586667.20160429074113@yandex.ru> To: Eric Blake , cygwin@cygwin.com Subject: Re: `CYGWIN=winsymlinks:nativestrict`, `ln -s target link` fails if target doesn't exist In-Reply-To: <5722A131.6010001@redhat.com> References: <1606116423.20160429020650@yandex.ru> <5722A131.6010001@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00639.txt.bz2 Greetings, Eric Blake! > 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. >> >> 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. My initial reaction was that, too, but I tried mklink (CMD internal command) mklink x y and it created the symlink in the empty directory just fine. -- With best regards, Andrey Repin Friday, April 29, 2016 07:40:02 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple