openbsd-ports/mail/mh/patches/patch-ap
1998-04-30 23:51:57 +00:00

24 lines
557 B
Plaintext

*** uip/spost.c.orig Wed Feb 11 22:14:51 1998
--- uip/spost.c Wed Feb 11 22:19:11 1998
***************
*** 357,364 ****
out = stdout;
}
else {
! (void)mktemp (tmpfil);
! if ((out = fopen (tmpfil, "w")) == NULL)
adios (tmpfil, "unable to create");
(void)chmod (tmpfil, 0600);
}
--- 357,366 ----
out = stdout;
}
else {
! int i;
!
! i = mkstemp (tmpfil);
! if ((i == -1) || ( (out = fdopen (i, "w")) == NULL))
adios (tmpfil, "unable to create");
(void)chmod (tmpfil, 0600);
}