311c1ed
diff -up mc-4.8.24/contrib/mc-wrapper.sh.in.tmpdir mc-4.8.24/contrib/mc-wrapper.sh.in
311c1ed
--- mc-4.8.24/contrib/mc-wrapper.sh.in.tmpdir	2020-01-27 09:17:46.815515791 +0100
311c1ed
+++ mc-4.8.24/contrib/mc-wrapper.sh.in	2020-01-27 09:18:01.430712110 +0100
311c1ed
@@ -1,5 +1,5 @@
311c1ed
 MC_USER=`whoami`
311c1ed
-MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
311c1ed
+MC_PWD_FILE="${TMPDIR-/var/tmp}/mc-$MC_USER/mc.pwd.$$"
311c1ed
 @bindir@/mc -P "$MC_PWD_FILE" "$@"
311c1ed
 
311c1ed
 if test -r "$MC_PWD_FILE"; then
311c1ed
--- mc-4.8.21/lib/global.h~
311c1ed
+++ mc-4.8.21/lib/global.h
311c1ed
@@ -131,7 +131,7 @@
311c1ed
 #define PATH_SEP_STR "/"
311c1ed
 #define IS_PATH_SEP(c) ((c) == PATH_SEP)
311c1ed
 #define PATH_ENV_SEP ':'
311c1ed
-#define TMPDIR_DEFAULT "/tmp"
311c1ed
+#define TMPDIR_DEFAULT "/var/tmp"
311c1ed
 #define SCRIPT_SUFFIX ""
311c1ed
 #define get_default_editor() "vi"
311c1ed
 #define OS_SORT_CASE_SENSITIVE_DEFAULT TRUE
311c1ed
--- mc-4.8.22/contrib/mc-wrapper.csh.in~
311c1ed
+++ mc-4.8.22/contrib/mc-wrapper.csh.in
311c1ed
@@ -3,7 +3,7 @@
311c1ed
 if ($?TMPDIR) then
311c1ed
 	setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$
311c1ed
 else
311c1ed
-	setenv MC_PWD_FILE /tmp/mc-$MC_USER/mc.pwd.$$
311c1ed
+	setenv MC_PWD_FILE /var/tmp/mc-$MC_USER/mc.pwd.$$
311c1ed
 endif
311c1ed
 
311c1ed
 @bindir@/mc -P "$MC_PWD_FILE" $*