openbsd-ports/mail/nmh/patches/patch-af

14 lines
372 B
Plaintext
Raw Normal View History

--- uip/spost.c.orig Sun Feb 6 04:41:00 2000
+++ uip/spost.c Tue Feb 29 17:52:41 2000
@@ -727,8 +727,8 @@
1998-04-30 00:24:30 -04:00
char *vec[6];
FILE * in, *out;
- mktemp (bccfil);
- if ((out = fopen (bccfil, "w")) == NULL)
+ fd = mkstemp (bccfil);
+ if ((fd == -1) || ((out = fdopen (fd, "w")) == NULL))
1998-04-30 00:24:30 -04:00
adios (bccfil, "unable to create");
chmod (bccfil, 0600);