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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=jTufD961HZ0WxC0JjPwPpNnX347j++V72dZ0EbvQV9Alrc1p3CbpY 7GzTQ03WseaPaf2aljFmBlbFlD/Co5egtGA8cMw1dLjWuoHKtVN0+cC4kbicqU4j 6aeBZLq/6MhkiYNnEFhu60CVQ+WktSCn6KRcc5IjM4m06HjUaJj0lU= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=Mh9f+ILZn7qujVjbYyecwXRhKRY=; b=mq81idz4RlyePlUidZVHNiPUoW5M Bufi5g7/WoCyTQ5++J01e9DWya0dC0Dk2H3ETD3lp3udNiT3c2idzOo+nFCA++eq 4EVdEEhfpENdIvzWdhEDn+VZvIQDpgroH4caDv0rOT6ryaFNv6Nfh/EtfD6EJ9gW k4IH6sjQcnYfjaY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 Date: Mon, 28 Nov 2016 13:03:10 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Bug in cygpath -a handling of leading ".//" Message-ID: <20161128120310.GA25988@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT 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) --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--