This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Re: Native symlinks troubles
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 15 Jul 2013 12:38:15 +0200
- Subject: Re: Re: Native symlinks troubles
- References: <CABEPuQJNnVV4Kgxu81y2HO8BDrqHoYYOKdi2xV-XRM7BOSyT4A at mail dot gmail dot com> <20130617125029 dot GE21191 at calimero dot vinschen dot de> <51E27E2A dot 7090409 at gmail dot com>
- Reply-to: cygwin at cygwin dot com
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