From: David Levine Date: Mon, 18 Jun 2012 03:56:23 +0000 (-0500) Subject: Removed possible tmp file leak. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=8d45f4718da3b8a57208f72fc58d17383a8f8012;p=mmh Removed possible tmp file leak. --- diff --git a/uip/mhmail b/uip/mhmail index 31a21d4..6e03f15 100755 --- a/uip/mhmail +++ b/uip/mhmail @@ -210,6 +210,7 @@ else else printf "Letter saved in dead.letter\n" #### exec skips the trap set above. + [ "${tmpfileresent}" ] && rm -f "${tmpfileresent}" exec mv "${tmpfile}" dead.letter fi fi