From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77396 invoked by alias); 25 Dec 2019 22:06:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 77389 invoked by uid 89); 25 Dec 2019 22:06:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=spirit, points, substitute, HContent-Transfer-Encoding:8bit X-HELO: resqmta-po-07v.sys.comcast.net Received: from resqmta-po-07v.sys.comcast.net (HELO resqmta-po-07v.sys.comcast.net) (96.114.154.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Dec 2019 22:06:01 +0000 Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) by resqmta-po-07v.sys.comcast.net with ESMTP id kEj6i7XwaVvhKkEn1i2Gib; Wed, 25 Dec 2019 22:05:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1577311559; bh=z92ZLrxfBnweZa4yjKerr1nwVNYxlQt+3ikI1aIPOuA=; h=Received:Received:To:From:Subject:Message-ID:Date:MIME-Version: Content-Type; b=V0Gr8rIRJuiS9agjRjG3JpZxyPmjoOLoUma5sSQmJteNsK9mk3Ja26+bcxWfNzKJX sP8pQJuYCsI4alZfTeC5H0FrdcsQy4J/62sogn9VlvvIIapnmf+ykKctL2XTQMqPlT o50gqri8dOzXmdpHgmQbKGb6e2btSYr4sxV84KZTO0OpTYWtF/tLfMto35nRwFfHzm MIdSEh8hSiTH0WoSeYlIqopCM+YwmxOL6EmNFhLuxgvgTy7yRxlus/iT21TBRc03Qo i9QO2yCdXOfGRT5VRNgcQSlxcQQIIgKNxXk+a6rc/NrCGkH70OznQHSggSPlXHPQ3x Gtpwqj8OdtWdA== Received: from [IPv6:::1] ([IPv6:2601:646:8300:b80:69db:e071:dcfc:97d1]) by resomta-po-18v.sys.comcast.net with ESMTPSA id kEn0ipIwNgIKLkEn1i5ub4; Wed, 25 Dec 2019 22:05:59 +0000 X-Xfinity-VMeta: sc=0.00;st=legit To: cygwin@cygwin.com From: Ernie Rael Subject: /bin/pwd, cygpath -wa fail under native symlink Message-ID: <43d42586-514d-476c-6e4b-84b650a827ec@raelity.com> Date: Thu, 26 Dec 2019 06:56:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00271.txt.bz2 (CYGWIN_NT-6.1 spirit 3.1.1(0.340/5/3) 2019-12-18 09:28 x86_64 Cygwin, win7) The windows root is C:, cygwin root is on F:. A native symlink under C: that points into F: gets an incorrect result from cygpath -wa. Notice that when the current directory is the target of the symlink then the result is ok. But any deeper in the tree fails. To summarize:     @ /a/src/jvi-dev/jvi $ cygpath -wa . C:\f\src\jvi-dev\jvi <<<<<<< correct     @ /a/src/jvi-dev/jvi/src $ cygpath -wa . C:\a\src\jvi-dev\jvi\src <<<<<<< fail === more detail ===     @ /a/src/jvi-dev $ ls -l jvi lrwxrwxrwx 1 erra None 18 Dec 23 15:16 jvi -> /f/src/jvi-dev/jvi     @ /a/src/jvi-dev $ junction jvi Junction v1.06 - Windows junction creator and reparse point viewer Copyright (C) 2000-2010 Mark Russinovich Sysinternals - www.sysinternals.com C:\a\src\jvi-dev\jvi: SYMBOLIC LINK    Print Name     : C:\f\src\jvi-dev\jvi    Substitute Name: \??\C:\f\src\jvi-dev\jvi     @ /a/src/jvi-dev $ cygpath -wa jvi C:\a\src\jvi-dev\jvi     @ /a/src/jvi-dev $ cd jvi     @ /a/src/jvi-dev/jvi $ cygpath -wa . C:\f\src\jvi-dev\jvi <<<<<<< correct     @ /a/src/jvi-dev/jvi $ cd src     @ /a/src/jvi-dev/jvi/src $ cygpath -wa . C:\a\src\jvi-dev\jvi\src <<<<<<< fail === some possibly relevent stuff from the mount table $ mount F:/cygwin64 on / type ntfs (binary,auto) C:/f on /f type ntfs (binary,user) F:/c on /c type ntfs (binary,user) F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto) -- 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