From: Stefan Kangas Date: Wed, 19 Oct 2022 06:02:36 +0000 (+0200) Subject: * lib-src/rcs2log: Add fallback for $TMPDIR. X-Git-Tag: emacs-29.0.90~1616^2~541 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5247a72aecb417e2f71e37af40ebacdfc26158b7;p=emacs.git * lib-src/rcs2log: Add fallback for $TMPDIR. --- diff --git a/lib-src/rcs2log b/lib-src/rcs2log index bc7875cfdd2..2a72404d9e5 100755 --- a/lib-src/rcs2log +++ b/lib-src/rcs2log @@ -209,7 +209,7 @@ month_data=' if type mktemp >/dev/null 2>&1; then logdir=`mktemp -d` else - logdir=$TMPDIR/rcs2log$$ + logdir="${TMPDIR-/tmp}/rcs2log$$" (umask 077 && mkdir "$logdir") fi || exit case $logdir in