]> git.marmaro.de Git - mmh/blobdiff - uip/rcvtty.c
* Applied patch from Peter Maydell to uip/scansbr.c for more
[mmh] / uip / rcvtty.c
index 69a903116fe56e9ed9633b962a56ada26fa756fa..5bdddb233dd61b66ba9aa34ed4bf124ba7328deb 100644 (file)
@@ -197,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 */