projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use mkstemp on systems that have it
[mmh]
/
uip
/
spost.c
diff --git
a/uip/spost.c
b/uip/spost.c
index
58d4ae3
..
c5b27a0
100644
(file)
--- a/
uip/spost.c
+++ b/
uip/spost.c
@@
-346,7
+346,11
@@
main (int argc, char **argv)
out = stdout;
}
else {
out = stdout;
}
else {
+#ifdef HAVE_MKSTEMP
+ mkstemp (tmpfil);
+#else
mktemp (tmpfil);
mktemp (tmpfil);
+#endif
if ((out = fopen (tmpfil, "w")) == NULL)
adios (tmpfil, "unable to create");
chmod (tmpfil, 0600);
if ((out = fopen (tmpfil, "w")) == NULL)
adios (tmpfil, "unable to create");
chmod (tmpfil, 0600);