From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6413715838C for ; Mon, 29 Jan 2024 01:22:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9912CE29C3; Mon, 29 Jan 2024 01:22:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7BA41E29C3 for ; Mon, 29 Jan 2024 01:22:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B8813434B6 for ; Mon, 29 Jan 2024 01:22:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A71A112C8 for ; Mon, 29 Jan 2024 01:22:32 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1706489525.86a3bfce1e399b3274143df00e68c762d3666724.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: misc/ X-VCS-Repository: proj/portage X-VCS-Files: misc/emerge-delta-webrsync X-VCS-Directories: misc/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 86a3bfce1e399b3274143df00e68c762d3666724 X-VCS-Branch: master Date: Mon, 29 Jan 2024 01:22:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0388b03c-4aa5-4fb4-9c19-0b48e4dd2879 X-Archives-Hash: 37654e850ac917f3d8dd57cd90aa6e61 commit: 86a3bfce1e399b3274143df00e68c762d3666724 Author: Zac Medico gentoo org> AuthorDate: Mon Jan 29 00:48:53 2024 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Jan 29 00:52:05 2024 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=86a3bfce emerge-delta-webrsync: cd to TMPDIR before rsync The cd to TMPDIR before rsync was erroneously removed in commit fa0f8720e168c95bcd6a8bd57d5abf09c488fd32. Apparently this problem was not reported earlier because this code path only executes when tarsync is not installed, and the emerge-delta-webrsync postinstall suggests to install tarsync since version 3.7.3 released near the end of 2015. Bug: https://bugs.gentoo.org/922923 Fixes: fa0f8720e168 ("emerge-delta-webrsync: handle gentoo-YYYYMMDD directory name") Signed-off-by: Zac Medico gentoo.org> misc/emerge-delta-webrsync | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/emerge-delta-webrsync b/misc/emerge-delta-webrsync index 49c8f606e1..a788cdb0eb 100755 --- a/misc/emerge-delta-webrsync +++ b/misc/emerge-delta-webrsync @@ -553,6 +553,7 @@ sync_local() { chown -R ${ownership} "${TMPDIR}" rsync_opts+=" --owner --group" fi + cd "${TMPDIR}" || die "failed to change directory to TMPDIR" chmod 755 . rsync ${rsync_opts} . "${repo_location%%/}" cd "${DISTDIR}"