public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Native symlinks troubles
@ 2013-06-17  4:43 Алексей Павлов
  2013-06-17 12:54 ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Алексей Павлов @ 2013-06-17  4:43 UTC (permalink / raw)
  To: cygwin

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

Instead "source/srcfile" it resolved as "ce/srcfile"
This happen if I remove cygdrive folder from Cygwin root and add line
to /etc/fstab:
 none / cygdrive binary,posix=0,noacl,user 0 0


Regards,
Alexey.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Native symlinks troubles
  2013-06-17  4:43 Native symlinks troubles Алексей Павлов
@ 2013-06-17 12:54 ` Corinna Vinschen
  2013-07-14 18:25   ` LRN
  0 siblings, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2013-06-17 12:54 UTC (permalink / raw)
  To: cygwin

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: Native symlinks troubles
  2013-06-17 12:54 ` Corinna Vinschen
@ 2013-07-14 18:25   ` LRN
  2013-07-15 11:01     ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: LRN @ 2013-07-14 18:25 UTC (permalink / raw)
  To: cygwin

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

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJR4n4oAAoJEOs4Jb6SI2CwDEYIALG04Wl6UH5uENr/pPAYGhk+
5wBoVIQ4Ix8XaCNtQ9tcIjO7tXnVNcYVZ/HtUk34Pzozk0eNK07N+IRHWHulN5pK
Uq3WkBffCEZusy1coB4T83MhImbyxZTkiYFgl3D8uV98Mq/63X9OqbL993OqttOt
WXKXNLa4c5lIRnCKtlXVlPM56QRdxUSPf4AwswinP3geSPUcK5sUIIKbk3PvCgCg
L/9OtLnt0McmbfQh2b9h4kmkrWiPkLTxjRXuNxuPcFGVRkGO8Htin5TRyATE2X0U
E1pneUvAHeucyVKsMXu5Ga+v6tPBX376PJrRbbhngITsW3UKnm8vMBn/nn4Z7Kw=
=kmH9
-----END PGP SIGNATURE-----

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: Native symlinks troubles
  2013-07-14 18:25   ` LRN
@ 2013-07-15 11:01     ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2013-07-15 11:01 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-15 10:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-17  4:43 Native symlinks troubles Алексей Павлов
2013-06-17 12:54 ` Corinna Vinschen
2013-07-14 18:25   ` LRN
2013-07-15 11:01     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).