From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Cc: cygwin-developers@cygwin.com
Subject: Re: Symbolic link bug in recent Cygwin DLL build
Date: Thu, 16 Apr 2020 10:58:07 +0200 [thread overview]
Message-ID: <20200416085807.GH3943@calimero.vinschen.de> (raw)
In-Reply-To: <Pine.BSF.4.63.2004152345230.10561@m0.truegem.net>
[-- 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 --]
next parent reply other threads:[~2020-04-16 8:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.BSF.4.63.2004152345230.10561@m0.truegem.net>
2020-04-16 8:58 ` Corinna Vinschen [this message]
2020-04-17 3:10 ` Mark Geisert
2020-04-17 7:50 ` Corinna Vinschen
2020-04-21 7:15 ` Mark Geisert
2020-04-21 8:08 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200416085807.GH3943@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin-developers@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).