openbsd-ports/news/cnews/patches/patch-af
1998-04-29 03:54:08 +00:00

20 lines
609 B
Plaintext

*** relay/fileart.c.orig Tue Apr 28 23:50:29 1998
--- relay/fileart.c Tue Apr 28 23:51:13 1998
***************
*** 287,293 ****
if (art->a_artf == NULL) {
nnfree(&art->a_tmpf);
art->a_tmpf = strsave(SPOOLTMP);
! (void) mktemp(art->a_tmpf);
art->a_unlink = YES;
art->a_artf = fopenwclex(art->a_tmpf, "w+");
if (art->a_artf == NULL)
--- 287,293 ----
if (art->a_artf == NULL) {
nnfree(&art->a_tmpf);
art->a_tmpf = strsave(SPOOLTMP);
! (void) close(mkstemp(art->a_tmpf));
art->a_unlink = YES;
art->a_artf = fopenwclex(art->a_tmpf, "w+");
if (art->a_artf == NULL)