delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/25/17:06:54

X-Recipient: archive-cygwin AT delorie DOT 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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=DBV
j2bBx3iThXJpD9tKXwxrNBsINQYoGZHKoYsRQL4gaxBgN4bDIZ22hQgqNRQwXVK+
uK9yDnRT1qm6j6qqQg7La/Q6qj9tD05mdpENb+k6sEvxTVpZCTgurGqt47stu5JZ
KosuVoD9J9LDpatvLCXPkOeny+Fvs2gBdnLfI3y0=
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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=GkFhPXeKe
uiScs3A6cDlMol2CRU=; b=N05PzENltGaEfuUK20B6dUpRaB++BDLXxwjy0K7B1
vlFSSLOGYe+dV6a7BMn5Er81qNNG1GznZgknYyCe8ejOrGL3GW9CLeTDPntJg8vC
wDbKHThBd7xb34/Nsx5H+G5bhaadqztx6yXREvJ1/9A7lZGZi8t9RyZFOUGqoxRb
Jg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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==
X-Xfinity-VMeta: sc=0.00;st=legit
To: cygwin AT cygwin DOT com
From: Ernie Rael <err AT raelity DOT com>
Subject: /bin/pwd, cygpath -wa fail under native symlink
Message-ID: <43d42586-514d-476c-6e4b-84b650a827ec@raelity.com>
Date: Wed, 25 Dec 2019 14:05:40 -0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
X-IsSubscribed: yes
Note-from-DJ: This may be spam

(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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019