summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-10-19 08:02:36 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-10-19 08:02:36 +0200
commit5247a72aecb417e2f71e37af40ebacdfc26158b7 (patch)
tree7c1d249db782f071ea9fb0295323dc9b61acddf4 /lib-src
parente42a68720efdbb4b8741a420a15e08b14671c1d1 (diff)
downloademacs-5247a72aecb417e2f71e37af40ebacdfc26158b7.tar.gz
* lib-src/rcs2log: Add fallback for $TMPDIR.
Diffstat (limited to 'lib-src')
-rwxr-xr-xlib-src/rcs2log2
1 files changed, 1 insertions, 1 deletions
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