* Cannot create a native symlink in not current directory
@ 2015-05-10 23:34 Пётр Б.
2015-05-11 12:39 ` David Macek
0 siblings, 1 reply; 2+ messages in thread
From: Пётр Б. @ 2015-05-10 23:34 UTC (permalink / raw)
To: cygwin
ln -s x y
Everything works.
ln -s x ../y
>ln: failed to create symbolic link ‘../y’: No such file or directory
Now it is interesting. WHAT IS THIS. Am I not getting something?
Same command works perfectly with non-native links.
CYGWIN_NT-6.1 USER 2.0.1(0.287/5/3) 2015-04-30 18:15 x86_64 Cygwin
CYGWIN="wincmdln winsymlinks:nativestrict"
--
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] 2+ messages in thread
* Re: Cannot create a native symlink in not current directory 2015-05-10 23:34 Cannot create a native symlink in not current directory Пётр Б. @ 2015-05-11 12:39 ` David Macek 0 siblings, 0 replies; 2+ messages in thread From: David Macek @ 2015-05-11 12:39 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 791 bytes --] On 10. 5. 2015 23:27, Пётр Б. wrote: > ln -s x y > > Everything works. > > ln -s x ../y > >> ln: failed to create symbolic link ‘../y’: No such file or directory > > Now it is interesting. WHAT IS THIS. Am I not getting something? > > Same command works perfectly with non-native links. Maybe you already know, but it took me a while to realize, so I'll mention it here: `ln -s target ../link` executed in directory /foo/bar will create /foo/link targeting "target", i.e. /foo/target (and not /foo/bar/target as I thought). Cygwin refuses to create NTFS symlinks to non-existing targets. This is due to a mismatch between NTFS and POSIX symlink semantics. Given this information, the error you're seeing should now be obvious to you. -- David Macek [-- Attachment #2: S/MIME Cryptographic Signature --] [-- Type: application/pkcs7-signature, Size: 4234 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-10 23:34 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-05-10 23:34 Cannot create a native symlink in not current directory Пётр Б. 2015-05-11 12:39 ` David Macek
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).