* Applied patch from Peter Maydell to uip/scansbr.c for more
[mmh] / uip / rcvtty.c
index 464a027..5bdddb2 100644 (file)
@@ -10,6 +10,7 @@
 #include <h/rcvmail.h>
 #include <h/scansbr.h>
 #include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
 #include <signal.h>
 #include <fcntl.h>
 
@@ -47,7 +48,7 @@ static struct swit switches[] = {
 #define VERSIONSW 8
     { "version", 0 },
 #define        HELPSW  9
-    { "help", 4 },
+    { "help", 0 },
     { NULL, 0 }
 };
 
@@ -196,8 +197,8 @@ message_fd (char **vec)
     unlink (mktemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))));
     if ((fd = open (tmpfil, O_RDWR | O_CREAT | O_TRUNC, 0600)) == NOTOK)
        return header_fd ();
-    unlink (tmpfil);
 #endif
+    unlink (tmpfil);
 
     if ((child_id = vfork()) == NOTOK) {
        /* fork error */