summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-lib-cedit.menu
blob: b4f221ea93d51b72395e9c48940b2deff8f681f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/cedit.menu.orig	Sun Aug 25 00:39:08 2002
+++ lib/cedit.menu	Tue Jun 15 03:15:09 2004
@@ -449,7 +449,7 @@
 
 m       view `man'
         MAN=%{Enter name of man:}
-        TMPFILE=/tmp/mcview.$MAN.$$
+        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/mcview.$MAN.$$` || exit 1
         man -Pcat $MAN >$TMPFILE
         mcview $TMPFILE
         rm -f $TMPFILE