]> git.eshelyaron.com Git - emacs.git/commitdiff
* lib-src/rcs2log: Add fallback for $TMPDIR.
authorStefan Kangas <stefankangas@gmail.com>
Wed, 19 Oct 2022 06:02:36 +0000 (08:02 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 19 Oct 2022 06:02:36 +0000 (08:02 +0200)
lib-src/rcs2log

index bc7875cfdd2dcfa74bb352a35c1100f3d375ca30..2a72404d9e519a46e8ea3450af0b6a5f719a0d81 100755 (executable)
@@ -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