This is the mail archive of the
cygwin
mailing list for the Cygwin project.
x86_64 Cygwin 1.7.29: possible bug to trace symlink (Win7)
- From: 卜勇华 <robert_bu at realsil dot com dot cn>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 15 Apr 2014 01:07:29 +0000
- Subject: x86_64 Cygwin 1.7.29: possible bug to trace symlink (Win7)
- Authentication-results: sourceware.org; auth=none
Hi,
It seems that cygwin cannot follow the Windows native symlink correctly.
set CYGWIN=winsymlinks:nativestrict
Steps to re-produce:
1. echo test > test.txt
2. mkdir dest
3. cd dest
4. ln -s ../test.txt test.txt
5. cd ..
6. mkdir src
7. cd src
8. ln -s ../dest dest
9. cd ..
10. cat src/dest/test.txt
cat cannot find the file of "test.txt".
The directory structure:
.
├─test.txt
├─dest/
└─test
└─src/
└─dest/
If I set CYGWIN=winsymlinks:lnk, all works fine for the above steps.
This is a simplified case of a problem when using repo/git.
--
Best regards.
Robert