projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add bash completion definitions from Debian
[mmh]
/
sbr
/
m_tmpfil.c
diff --git
a/sbr/m_tmpfil.c
b/sbr/m_tmpfil.c
index
1b4f354
..
907c624
100644
(file)
--- a/
sbr/m_tmpfil.c
+++ b/
sbr/m_tmpfil.c
@@
-3,6
+3,10
@@
* m_tmpfil.c -- construct a temporary file
*
* $Id$
* 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>
*/
#include <h/mh.h>
@@
-14,7
+18,15
@@
m_tmpfil (char *template)
static char tmpfil[BUFSIZ];
snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", 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));
unlink(mktemp(tmpfil));
-
+/*
+#endif
+*/
return tmpfil;
}
return tmpfil;
}