X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..4eaed47f91c9de0b520ea41188be3fedae4b99ca:/sbr/m_tmpfil.c diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c index 1b4f3549..907c6244 100644 --- a/sbr/m_tmpfil.c +++ b/sbr/m_tmpfil.c @@ -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 @@ -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; }