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 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: <1ra7j6h9scktvnlpdceejo3i3q4k4f5c3c AT 4ax DOT com> <20110117135627 DOT GC11221 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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