Respect TMPDIR environment variable.

This commit is contained in:
Pavel Roskin 2002-10-31 05:36:54 +00:00
parent f5bf601c7c
commit 9b75f6df97

View File

@ -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`"