2002-09-29 20:29:02 -04:00
|
|
|
$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)
|
1998-04-30 00:24:30 -04:00
|
|
|
char *vec[6];
|
|
|
|
FILE * in, *out;
|
|
|
|
|
|
|
|
- mktemp (bccfil);
|
|
|
|
- if ((out = fopen (bccfil, "w")) == NULL)
|
1999-03-26 03:48:27 -05:00
|
|
|
+ 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);
|
|
|
|
|