openbsd-ports/mail/nmh/patches/patch-uip_spost_c
2002-09-30 00:29:02 +00:00

15 lines
462 B
Plaintext

$OpenBSD: patch-uip_spost_c,v 1.1 2002/09/30 00:29:02 pvalchev Exp $
--- uip/spost.c.orig Fri Feb 4 13:28:24 2000
+++ uip/spost.c Mon Sep 30 18:22:06 2002
@@ -727,8 +727,8 @@ make_bcc_file (void)
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))
adios (bccfil, "unable to create");
chmod (bccfil, 0600);