This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

x86_64 Cygwin 1.7.29: possible bug to trace symlink (Win7)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]