From e17326698209b9aedc14c7d9efbd0937b8f5337b Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 27 Aug 2026 02:29:56 -0400 Subject: litterbox: don't inherit TMP from environment. --- litterbox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litterbox b/litterbox index 499fe9d..ad730ab 100755 --- a/litterbox +++ b/litterbox @@ -104,7 +104,7 @@ compress_file() { basefile="$( basename "$FILE" )" # TODO: create a random tmp dir, don't use /tmp! - TMPFILE="${TMP:-/tmp}/$basefile$ext" + TMPFILE="$TMP/$basefile$ext" rm -f "$TMPFILE" if [ "$ZIP" = "1" ]; then zip -qr "$TMPFILE" "$FILE" @@ -142,7 +142,7 @@ upload_file() { if [ "$use_compression" = 1 ]; then # can't easily zip stdin, write it to a file if [ "$FILE" = "-" ]; then - FILE="${TMP:-/tmp}/$SELF.stdin" + FILE="$TMP/$SELF.stdin" cat > "$FILE" if [ "$?" != 0 ]; then rm -f "$FILE" -- cgit v1.2.3