Removed possible tmp file leak.
authorDavid Levine <levinedl@acm.org>
Mon, 18 Jun 2012 03:56:23 +0000 (22:56 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 18 Jun 2012 03:56:23 +0000 (22:56 -0500)
uip/mhmail

index 31a21d4..6e03f15 100755 (executable)
@@ -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