public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dan Levi <dlevi@tibco.com>
To: cygwin@cygwin.com
Subject: Physical path resolution does not handle parent junction points
Date: Thu, 29 Aug 2019 19:08:00 -0000	[thread overview]
Message-ID: <CA+-+cpHkFnqe5byjyWQauDqrZfXMJeYqSgphLOxc+W5Lm3XUGw@mail.gmail.com> (raw)

Open terminal (as admin):

[~] $ mkdir -p A/B
[~] $ ln -s A C
[~] $ cmd /c "mklink /j D A"
Junction created for D <<===>> A
[~] $ (cd C/B ; pwd -P)
/home/me/A/B
[~] $ (cd D/B ; pwd -P)
/home/me/D/B

The last output should be /home/me/A/B, not /home/me/D/B.

realpath displays the same behavior.

--
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

             reply	other threads:[~2019-08-29 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-29 19:08 Dan Levi [this message]
2019-08-29 19:20 ` Andrey Repin

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=CA+-+cpHkFnqe5byjyWQauDqrZfXMJeYqSgphLOxc+W5Lm3XUGw@mail.gmail.com \
    --to=dlevi@tibco.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).