delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 17 Jan 2011 16:11:42 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygpath unable to translate the *nix path to an NTFS junction point |
Message-ID: | <20110117151142.GE11221@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <AANLkTik5e=pvzaqW+Rxq33NQu1AyaAq3uLmZD3Cb8s5N AT mail DOT gmail DOT com> <1ra7j6h9scktvnlpdceejo3i3q4k4f5c3c AT 4ax DOT com> <20110117135627 DOT GC11221 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20110117135627.GC11221@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Jan 17 14:56, Corinna Vinschen wrote: > ...we won't take patches which add arbitrary options to the CYGWIN > variable which could also be solved in other ways. In this special > case, only the conversion from POSIX to Win32 paths is affected. > This conversion is only supported by the cygwin_conv_path function > and, subsequently, the cygpath utility. Therefore, such a change > should be restricted to this API. I'll have a look into adding > something along these lines. Try the latest developer snapshot from http://cygwin.com/snapshots/ It contains a patch which should help in most cases. Let's assume this scenario: $ pwd /tmp $ mkdir t $ cmd /c mklink /j t-rep t The only case which still returns the "wrong" path is the one where you explicitely cd into the target directory of the junction reparse point and then try $ cygpath -wa . C:\cygwin\tmp\t The reason is that the POSIX cwd is set to the real directory already, so . also refers to the real directory. Working alternative: bash or dash$ cygpath -wa `pwd` C:\cygwin\tmp\t-rep tcsh$ cygpath -wa $cwd C:\cygwin\tmp\t-rep Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |