From: David Levine Date: Sat, 25 Jan 2014 15:26:13 +0000 (-0600) Subject: Restored the unlinks of temporary files immediately after their X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/28a967a12cfb0b16a136223082e07884eecba715?ds=inline;hp=-c Restored the unlinks of temporary files immediately after their creation in rcvtty.c, now that we have m_unlink(). --- 28a967a12cfb0b16a136223082e07884eecba715 diff --git a/uip/rcvtty.c b/uip/rcvtty.c index bf140ddd..8ddc15d1 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -192,6 +192,7 @@ message_fd (char **vec) advise(NULL, "unable to create temporary file in %s", get_temp_dir()); return NOTOK; } + m_unlink(tfile); /* Use fd, no longer need the file name. */ if ((child_id = fork()) == NOTOK) { /* fork error */ @@ -255,6 +256,7 @@ header_fd (void) advise(NULL, "unable to create temporary file in %s", get_temp_dir()); return NOTOK; } + m_unlink(tfile); /* Use fd, no longer need the file name. */ rewind (stdin);