mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Respect TMPDIR environment variable.
This commit is contained in:
parent
f5bf601c7c
commit
9b75f6df97
@ -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`"
|
||||
|
Loading…
Reference in New Issue
Block a user