From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65DC6C433EF for ; Thu, 30 Sep 2021 21:45:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 390C3619F5 for ; Thu, 30 Sep 2021 21:45:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbhI3Vqy (ORCPT ); Thu, 30 Sep 2021 17:46:54 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:63859 "EHLO pb-smtp2.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbhI3Vqx (ORCPT ); Thu, 30 Sep 2021 17:46:53 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 41EEFEC509; Thu, 30 Sep 2021 17:45:10 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=CgD/zx2P7ph/GmAemfxx4oqUnJNJjbmbOEli5R Iaxv0=; b=SJfTBW9HGzucEpjBJmdAf9T1IYceBuax4i2fuMkihuI6hnOVOF/q6v 9xiAaIm+/ceF1XXvnVDWT7hRwPwflJDNpfcncE0GQZyElzPdvzx1vyosthYMc4EI e8qOx8o/5Bpl7z76877ysWwLsVhFwcZI5SRtkhoCvwOFQ6FRRgW58= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 23591EC507; Thu, 30 Sep 2021 17:45:10 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [104.133.2.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 472E6EC506; Thu, 30 Sep 2021 17:45:09 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: David Aguilar Cc: Git Mailing List , =?utf-8?B?w4Z2YXIgQXJuZmo=?= =?utf-8?B?w7Zyw7A=?= Bjarmason , Johannes Schindelin Subject: Re: [PATCH v6 1/5] difftool: create a tmpdir path without repeated slashes References: <20210930170146.61489-1-davvid@gmail.com> Date: Thu, 30 Sep 2021 14:45:07 -0700 In-Reply-To: <20210930170146.61489-1-davvid@gmail.com> (David Aguilar's message of "Thu, 30 Sep 2021 10:01:42 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: AED28E3A-2237-11EC-8FEF-CD991BBA3BAF-77302942!pb-smtp2.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org David Aguilar writes: > The paths generated by difftool are passed to user-facing diff tools. > Using paths with repeated slashes in them is a cosmetic blemish that > is exposed to users and can be avoided. > > Use a strbuf to create the buffer used for the dir-diff tmpdir. > Strip trailing slashes from the value read from TMPDIR to avoid > repeated slashes in the generated paths. > > Adjust the error handling to avoid leaking strbufs. > > Signed-off-by: David Aguilar > --- > This patch is a resend based off of "next" so that this series can be > tracked together. > > This patch is unchanged since the v5 was submitted, but there are > new related patches that proceed it. OK. I confirmed that this is unchanged from the first step of v5.