* Symbolic link bug in recent Cygwin DLL build
@ 2020-04-16 6:53 Mark Geisert
2020-04-16 8:58 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Mark Geisert @ 2020-04-16 6:53 UTC (permalink / raw)
To: cygwin
After installing a recent DLL built from the git source tree I noticed:
~ ln -s /tmp/foo .
~ ls -l foo
lrwxrwxrwx 1 Mark None 12 Apr 15 23:44 foo -> /mnt/tmp/foo
Creating a symbolic link from a different directory adds "/mnt" to the
path stored in the link. I don't have a /mnt, env var 'CYGWIN' is empty,
nothing unusual in /etc/fstab or 'mount' output. Win 10 v1909.
..mark
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Symbolic link bug in recent Cygwin DLL build
2020-04-16 6:53 Symbolic link bug in recent Cygwin DLL build Mark Geisert
@ 2020-04-16 8:58 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2020-04-16 8:58 UTC (permalink / raw)
To: cygwin; +Cc: cygwin-developers
[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]
Hi Mark,
On Apr 15 23:53, Mark Geisert wrote:
> After installing a recent DLL built from the git source tree I noticed:
>
> ~ ln -s /tmp/foo .
>
> ~ ls -l foo
> lrwxrwxrwx 1 Mark None 12 Apr 15 23:44 foo -> /mnt/tmp/foo
Huh? That works for me, independently of /tmp/foo existing or not:
$ ln -s /tmp/foo .
$ ls -l foo
lrwxrwxrwx 1 corinna Users 8 Apr 16 10:38 foo -> /tmp/foo
Since you're building the DLL yourself, can you please debug this with
GDB? It would be very important to find out what on your system adds
the /mnt prefix!
It could occur in creating the symlink, that's in path.cc, function
symlink_wsl(), or it could occur in reading the symlink, path.cc,
function check_reparse_point_target(), in the else if (rp->ReparseTag ==
IO_REPARSE_TAG_LX_SYMLINK) branch at line 2534.
As for /mnt itself, it's the WSL equivalent to the cygdrive prefix.
When creating WSL symlinks, Cygwin converts the cygdrive prefix to
/mnt, and when reading WSL symlinks, a leading /mnt is converted
to the current cygdrive prefix on the fly.
We should just move further discussions to the cygwin-developers ML.
Thanks,
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:[~2020-04-16 8:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16 6:53 Symbolic link bug in recent Cygwin DLL build Mark Geisert
2020-04-16 8:58 ` 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).