X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhmail;h=2fbedccb61f64855abd03b6c44e79e5b152a9b56;hb=51e598739b071778dd3f0eee3db5c50164346da1;hp=afe633f842c9edaf92d69ce480ca5eac8a4a3905;hpb=0d33f1e27c4edb7290ef51cd03d50c0dbc9059ef;p=mmh diff --git a/uip/mhmail b/uip/mhmail index afe633f..2fbedcc 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$$ '$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.