From 08b2ce444f4df3c3eeb0b1a7c9a571851d70e1aa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Apr 2022 17:28:40 +0530 Subject: [PATCH] Also dont apply umask when extracting bootstrap data --- shell-integration/ssh/bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index 106ce4536..176ebdaac 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -95,7 +95,10 @@ untar_and_read_env() { tdir=$(command mktemp -d "$HOME/.kitty-ssh-kitten-untar-XXXXXXXXXXXX") [ $? = 0 ] || die "Creating temp directory failed" # suppress STDERR for tar as tar prints various warnings if for instance, timestamps are in the future + old_umask=$(umask) + umask 000 read_base64_from_tty | base64_decode | command tar "xpzf" "-" "-C" "$tdir" 2> /dev/null + umask "$old_umask" . "$tdir/bootstrap-utils.sh" . "$tdir/data.sh" [ -z "$KITTY_SSH_KITTEN_DATA_DIR" ] && die "Failed to read SSH data from tty"