X-Recipient: archive-cygwin@delorie.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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:content-transfer-encoding
	:in-reply-to; q=dns; s=default; b=KW0DEz+RzGu+LenukdD8m5S9TPVkkV
	Zh9CTy7Tpmihn/TeHHUIuXTPse09IFjIFKFvDZdsTWCD/4pTn98y33DWTgBM0taD
	74pPwnix2De7U1awzWxU5PiBMuXq4B8dqBKHDsTQK7LlGs+zb6iHRZ+kzcVD3iHy
	Z/khbkPDhxxu8=
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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:content-transfer-encoding
	:in-reply-to; s=default; bh=Hdm6INnD4Qa3znKNHjQR4TteFAs=; b=EVGz
	ydOKqivDQff3IXnCsIWdyVZEglnmVWFIkqcJ8x3ycZ5LlN61rWJvTTXWkNWkZUkW
	Es857gLAXo2NNfGijZsLVxmjYdR2EX2jwJ3okKlEQ456QXw+GE2Immom3VaQGhTd
	+pqSm2CLCWIbBkW2QFyOWFU9wKJ6MEngymqegVc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,TW_LR,TW_RW,TW_WX,TW_XR autolearn=no version=3.3.1
Date: Mon, 15 Jul 2013 12:38:15 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Re: Native symlinks troubles
Message-ID: <20130715103815.GA18483@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <CABEPuQJNnVV4Kgxu81y2HO8BDrqHoYYOKdi2xV-XRM7BOSyT4A@mail.gmail.com> <20130617125029.GE21191@calimero.vinschen.de> <51E27E2A.7090409@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <51E27E2A.7090409@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Note-from-DJ: This may be spam

On Jul 14 14:32, LRN wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 17.06.2013 16:50, Corinna Vinschen wrote:
> > On Jun 17 08:43, Алексей Павлов wrote:
> >> This simple example illustrate problem with using native symlinks.
> >>
> >> $ export CYGWIN=winsymlinks:nativestrict
> >>
> >> $ mkdir bld && mkdir source && touch source/srcfile && ln -s
> >> ../source/srcfile bld/bldfile
> >>
> >> $ ls -l bld
> >> total 0
> >> lrwxrwxrwx 1 alexey None 10 Jun 17 08:29 bldfile -> ce/srcfile
> > 
> > Thanks for the report.  I applied a patch which should fix this issue.
> > 
> > I'm just uploading a new developer snapshot 2013-06-17 to
> > http://cygwin.com/snapshots/, as well as a new 64 bit Cygwin test
> > release 1.7.21-4.  Please give one of them a try.
> > 
> > 
> > Thanks,
> > Corinna
> > 
> 
> Try this (with CYGWIN=winsymlinks:nativestrict):
> $ mkdir zoo
> $ touch zoo/foo
> $ ln -s zoo/foo zoo.x
> $ ls -l zoo.x
> 
> expected result:
> lrwxrwxrwx X YYYY ZZZZ AA BBB CC HH:MM zoo.x -> zoo/foo
> 
> actual result:
> lrwxrwxrwx X YYYY ZZZZ AA BBB CC HH:MM zoo.x -> foo
> 
> happens at least when name (minus extension) of the symlink is the same
> as the name of the first component (i.e. directory name) of the target.

Thanks for the report.  I applied a patch.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
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

