From 9b75f6df97cc5204915a2071fbbb3656abe59d82 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 31 Oct 2002 05:36:54 +0000 Subject: [PATCH] Respect TMPDIR environment variable. --- lib/mc.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mc.sh.in b/lib/mc.sh.in index a7058c820..14d4fcd1a 100644 --- a/lib/mc.sh.in +++ b/lib/mc.sh.in @@ -1,6 +1,6 @@ mc () { - MC_PWD_FILE="/tmp/mc-$USER/mc.pwd.$$" + MC_PWD_FILE="${TMPDIR-/tmp}/mc-$USER/mc.pwd.$$" @prefix@/bin/mc -P "$MC_PWD_FILE" "$@" if test -r "$MC_PWD_FILE"; then MC_PWD="`cat $MC_PWD_FILE`"