aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2024-01-28 16:48:53 -0800
committerZac Medico <zmedico@gentoo.org>2024-01-28 16:52:05 -0800
commit86a3bfce1e399b3274143df00e68c762d3666724 (patch)
tree3e98a7e0924fb914910ced5e1df38ae22c24b23d /misc
parentactions: Use psf/black@24.1.1 and sync pre-commit version (diff)
downloadportage-86a3bfce1e399b3274143df00e68c762d3666724.tar.gz
portage-86a3bfce1e399b3274143df00e68c762d3666724.tar.bz2
portage-86a3bfce1e399b3274143df00e68c762d3666724.zip
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 <zmedico@gentoo.org>
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/emerge-delta-webrsync1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/emerge-delta-webrsync b/misc/emerge-delta-webrsync
index 49c8f606e..a788cdb0e 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}"