From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94711 invoked by alias); 28 Nov 2016 12:03:35 -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 94687 invoked by uid 89); 28 Nov 2016 12:03:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Zeitlin, zeitlin, vadim, Vadim X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 Nov 2016 12:03:24 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 5BF1F71E3F8CE for ; Mon, 28 Nov 2016 13:03:11 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 97C195E008B for ; Mon, 28 Nov 2016 13:03:10 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 8DF76A80599; Mon, 28 Nov 2016 13:03:10 +0100 (CET) Date: Mon, 28 Nov 2016 19:23:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Bug in cygpath -a handling of leading ".//" Message-ID: <20161128120310.GA25988@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2016-11/txt/msg00309.txt.bz2 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1607 On Nov 26 02:42, Vadim Zeitlin wrote: > Hello, >=20 > I seem to have a special talent for finding problems related to the > handling of doubled consecutive slashes in cygpath, as 5 years after > posting my previous bug report on this topic (see > http://sourceware.org/ml/cygwin/2011-06/msg00212.html), I have another one > which is also best shown with an example obtained with the latest Cygwin > 2.6.0 version under Windows 7: >=20 > [~]% cd /tmp > [/tmp]% mkdir dir > [/tmp]% cd $_ > [/tmp/dir]% cygpath -a ../dir > /tmp/dir > [/tmp/dir]% cygpath -a ./../dir > /tmp/dir > [/tmp/dir]% cygpath -a .//../dir > /tmp/dir/dir >=20 > The last one is, of course, incorrect, as it should still output /tmp/dir. > Notice that the problem doesn't happen if "-am" or "-aw" is used, only for > "-a" on its own, so it does have a simple workaround: realpath can be used > instead. But I still wanted to report it in the hope that it might at lea= st > help somebody else if they run into it (it took me quite some time to > realize that the bug wasn't in my own makefile but rather in cygpath > itself...). >=20 > Please let me know if you'd like me to provide any further information a= nd > thanks in advance for looking at this, I could easily reproduce the problem and pushed a patch to the repo. I uploaded a new developer snapshot to https://cygwin.com/snapshots/, please give it a try. I guess a 2.6.1 bugfix release is due soon. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYPBz+AAoJEPU2Bp2uRE+gVe4QAIOQTo0rgKvgJTwId7rSHR1d 21WYg48B+t5eSK/JSM7i183qwCeLSqujpnW4iCKpRwqnbY7+1qltWmZqyE7bsgwv 1KZ/dXXUpYjhbuFUJonLLqlrhm24ftbJ59NFmIdqfVsiOA2+CeseUebtofVDi/RX +dmWBlVSx6rgIg0WcJ3a6HU66CWB3wcZwSmprbM1RuOr32SOIIOkaoONFssRjVxL Bk5GJjEzHpdOJPJvMN0A4PVWIf3mLMbbQT5Rjk7rtDcrM21fGooU8RAbpTzubtak drQLhdVmyRKKiIOJOI6nnA+A/PElaVn1HIzO4qFd/hcQ7QKbNIpfkd0liCS+6nml XrW2eY5WDcMS8f6PyJV4i3FE7ItFMEkXcZuuppULhEBkl0N/A5HSQ5mAaXmrtpCD f8IksbpjPf2ZIRCIQb/q3he9dCXekTvRGl+Piz9HPnB5qJVMiIZpgOzYEZDobs2M N90abNZboYVCfArlvhZBefVevyD9z6t2PlMJML8+spWgtxa7M7gboc2DI47JKtD6 HxJ1lidvyzbNw0vrOAYe2S57TBMN9r+PqHYi36vTT2bjQhNx/jOIk3aGxUNL0z1v 2b7IFiVhWrD5yH0Cit44QonIGf8GPZmTeovTU94cNTkexVw6msIwF+2pbRPl7aiT 1x/YYe5QBzfYOYe5OPGF =2lPv -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--