From 33c1e98f0e044d5cbc1cee31ed03486c46a4e846 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 16 Jul 2023 12:58:01 +0200 Subject: [PATCH] Fix tar race condition when tix-port(8) strips programs. --- tix/tix-port | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tix/tix-port b/tix/tix-port index de94c3da..bca008c6 100755 --- a/tix/tix-port +++ b/tix/tix-port @@ -444,8 +444,7 @@ strip_tix() {( $strip -d "$data_dir/sbin/"* 2>/dev/null || true (cd "$dir" && LC_ALL=C ls -A | grep -Ev '^tix$' | - tar --numeric-owner --owner=0 --group=0 -cJf port.tar.tix.xz tix -T -) - cp "$dir/port.tar.tix.xz" "$1" + tar --numeric-owner --owner=0 --group=0 -cJf "$1" tix -T -) rm -rf "$dir" )}