]> diplodocus.org Git - nmh/blobdiff - sbr/m_tmpfil.c
Since faqs.org appears to be moribund, I'm now using my site as the
[nmh] / sbr / m_tmpfil.c
index 1b4f3549153bc553323d6fc3fb18bdbfe2b39ece..907c624435c0f35d6f787c4834f6d7b1e50b0bfa 100644 (file)
@@ -3,6 +3,10 @@
  * m_tmpfil.c -- construct a temporary file
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
@@ -14,7 +18,15 @@ m_tmpfil (char *template)
     static char tmpfil[BUFSIZ];
 
     snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template);
+/*
+  Mkstemp work postponed until later -Doug
+#ifdef HAVE_MKSTEMP
+    unlink(mkstemp(tmpfil));
+#else
+*/
     unlink(mktemp(tmpfil));
-
+/*
+#endif
+*/
     return tmpfil;
 }