X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=mBnfwbHYyFz720cmJ/00zVfVyNFic
	D9d1toQQOlEGcjSXmclf9Cb2oSvQ9UMwu8UxDKO9j1pNLlQYseJxQIq8YwAlrmJH
	92Jo/L/P59R5nQB+kOOVMfTAi5EaH23AXphJbl9wAhIZoEuV+wAtke1STrPLHgB3
	kB7ersztsOF3B0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=rtKbf/x+NjKTawNRkppp34z9dXc=; b=SSj
	n5pou3DerKYa6ULEmmilfwgkMJbgLI8uhJr4x8YlVjJtcYOvrrny60SfjJLmqQKW
	59KE1TwQotZ39RinKinkgeksm9wzrvTkIOJOjYd3UW5QMLGcBlUziJsoeE7Q9j7x
	dlt5jvwXmblBkT718RG9jMmSpYFLSRvUJ71hCoB4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*r:sk:mail-pl, HX-HELO:sk:mail-pl, H*RU:sk:mail-pl, HX-Spam-Relays-External:sk:mail-pl
X-HELO: mail-pl1-f177.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=tibco.com; s=tibcogoogle;        h=mime-version:from:date:message-id:subject:to;        bh=OmGgJcpVvTUu0u0hVJfFTmqytfHhwWHkgz431qgr17U=;        b=WVVm//1Cbld3GHbBC/mwcjarXxsK6OdZAlxJnAzgMAf4RC01qg9UEGgwwFVQ6APoIH         T9vHOonihtnKh6bCj5OuRiReKy9fL76B994aL/ZGlcqgA2RY1txsLNvGvEez3pJ+QW9L         UsDWMmrkPwtepy3M+ynmh+jAtr+Q/VFa0T60I=
MIME-Version: 1.0
From: Dan Levi <dlevi@tibco.com>
Date: Thu, 29 Aug 2019 12:51:20 -0400
Message-ID: <CA+-+cpHkFnqe5byjyWQauDqrZfXMJeYqSgphLOxc+W5Lm3XUGw@mail.gmail.com>
Subject: Physical path resolution does not handle parent junction points
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"

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

