From bb8db313c1deea588b83a44a86e653d3cfcac9c1 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 20 Oct 2012 07:44:34 -0500 Subject: [PATCH] Fixed the trap in mhmail. --- uip/mhmail | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uip/mhmail b/uip/mhmail index afe633f..7353e9a 100755 --- a/uip/mhmail +++ b/uip/mhmail @@ -210,7 +210,7 @@ fi umask 077 tmpdir="${MHTMPDIR:-${TMPDIR:-${TMP:-`$nmhbindir/mhpath +`}}}" tmpfile="$tmpdir/mhmail$$" -tmpfilebackup="$tmpdir/[,#]mhmail$$" +tmpfilebackup="\"$tmpdir\"/[,#]mhmail$$" tmpfileresent= message_file= @@ -235,7 +235,7 @@ else fi fi -trap 'rm -f '"$tmpfile"' '"$tmpfilebackup"' '"$tmpfileresent" EXIT +trap "rm -f '$tmpfile' $tmpfilebackup ${tmpfileresent:+'$tmpfileresent'}" 0 if [ "$body"x = x ]; then #### First put message header in the file. -- 1.7.10.4