Blob Blame History Raw
--- a/Extends-TMPDIR_DEFAULT-to-mc-wrapper-scripts.patch	
+++ a/Extends-TMPDIR_DEFAULT-to-mc-wrapper-scripts.patch	
@@ -0,0 +1,38 @@ 
+From e73f27b85de32a3a1cec751f13a06252b1f29bff Mon Sep 17 00:00:00 2001
+From: poma <poma@gmail.com>
+Date: Sat, 18 Mar 2017 12:09:52 -0400
+Subject: [PATCH] Extends TMPDIR_DEFAULT to mc-wrapper scripts,
+ resolves exit to mc's current working directory.
+
+---
+ contrib/mc-wrapper.csh.in | 2 +-
+ contrib/mc-wrapper.sh.in  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/contrib/mc-wrapper.csh.in b/contrib/mc-wrapper.csh.in
+index fdf2e1f..ec23784 100644
+--- a/contrib/mc-wrapper.csh.in
++++ b/contrib/mc-wrapper.csh.in
+@@ -3,7 +3,7 @@ set MC_USER="`id | sed 's/[^(]*(//;s/).*//'`"
+ if ($?TMPDIR) then
+ 	setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$
+ else
+-	setenv MC_PWD_FILE /tmp/mc-$MC_USER/mc.pwd.$$
++	setenv MC_PWD_FILE /var/tmp/mc-$MC_USER/mc.pwd.$$
+ endif
+ 
+ @bindir@/mc -P "$MC_PWD_FILE" $*
+diff --git a/contrib/mc-wrapper.sh.in b/contrib/mc-wrapper.sh.in
+index 773bbd1..26ab673 100644
+--- a/contrib/mc-wrapper.sh.in
++++ b/contrib/mc-wrapper.sh.in
+@@ -1,5 +1,5 @@
+ MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
+-MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
++MC_PWD_FILE="${TMPDIR-/var/tmp}/mc-$MC_USER/mc.pwd.$$"
+ @bindir@/mc -P "$MC_PWD_FILE" "$@"
+ 
+ if test -r "$MC_PWD_FILE"; then
+-- 
+2.12.0
+