* Can't create symbolic links in child directories
@ 2019-03-31 23:25 Matt D.
2019-04-01 9:27 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Matt D. @ 2019-03-31 23:25 UTC (permalink / raw)
To: cygwin
This works:
> touch a
> ln -s a b
This no longer works:
> touch a
> mkdir b
> ln -s a b/c
Error:
ln: failed to create symbolic link 'b/c': No such file or directory
My CYGWIN environment is also configured using "winsymlinks:nativestrict".
I am running the following version (updated today):
CYGWIN_NT-10.0-WOW WORKSTATION 3.0.5(0.338/5/3) 2019-03-31 11:22 i686 Cygwin
I cannot confirm at which point this bug appeared as I updated from some
version prior to 3.0. I am reasonably certain that this has worked
before as I use symbolic links often.
--
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: Can't create symbolic links in child directories
2019-03-31 23:25 Can't create symbolic links in child directories Matt D.
@ 2019-04-01 9:27 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2019-04-01 9:27 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 921 bytes --]
On Mar 31 19:24, Matt D. wrote:
> This works:
>
> > touch a
> > ln -s a b
>
> This no longer works:
>
> > touch a
> > mkdir b
> > ln -s a b/c
>
> Error:
>
> ln: failed to create symbolic link 'b/c': No such file or directory
>
> My CYGWIN environment is also configured using "winsymlinks:nativestrict".
I'm pretty sure this never worked. Consider what "nativestrict" means.
The target has to exist to allow the native symlink being created
type-correct. In your example the target doesn't exist:
ln -s a b/c
means, c points to a. So a is expected in the same directory as c.
So looking from the point of the current directory the symlink
b/c is supposed to point to the file b/a. Which doesn't exist.
Which lets symlinking with nativestrict fail. "winsymlinks:native"
will work, albeit creating a Cygwin symlink then.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-01 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-31 23:25 Can't create symbolic links in child directories Matt D.
2019-04-01 9:27 ` 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).