From 28a967a12cfb0b16a136223082e07884eecba715 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 25 Jan 2014 09:26:13 -0600 Subject: [PATCH] Restored the unlinks of temporary files immediately after their creation in rcvtty.c, now that we have m_unlink(). --- uip/rcvtty.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.56.0