projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added answer.
[mmh]
/
sbr
/
m_tmpfil.c
diff --git
a/sbr/m_tmpfil.c
b/sbr/m_tmpfil.c
index
31bce67
..
bac70b0
100644
(file)
--- a/
sbr/m_tmpfil.c
+++ b/
sbr/m_tmpfil.c
@@
-14,11
+14,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
#ifdef HAVE_MKSTEMP
unlink(mkstemp(tmpfil));
#else
+*/
unlink(mktemp(tmpfil));
unlink(mktemp(tmpfil));
+/*
#endif
#endif
-
+*/
return tmpfil;
}
return tmpfil;
}