mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
Respect TMPDIR environment variable.
This commit is contained in:
parent
f5bf601c7c
commit
9b75f6df97
@ -1,6 +1,6 @@
|
|||||||
mc ()
|
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" "$@"
|
@prefix@/bin/mc -P "$MC_PWD_FILE" "$@"
|
||||||
if test -r "$MC_PWD_FILE"; then
|
if test -r "$MC_PWD_FILE"; then
|
||||||
MC_PWD="`cat $MC_PWD_FILE`"
|
MC_PWD="`cat $MC_PWD_FILE`"
|
||||||
|
Loading…
Reference in New Issue
Block a user