X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fspost.c;h=555bb68dceee6ca4cf30403e786eaf1bcdb1d3f9;hb=cfc525a9b85207225cb4071d1d3b01e8d1db2424;hp=577273715d81df5b3da404100e9b4505d54153fa;hpb=7879ea4084333b448c5a3a49c1cb52023e3808d1;p=mmh diff --git a/uip/spost.c b/uip/spost.c index 5772737..555bb68 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -727,9 +727,15 @@ make_bcc_file (void) char *vec[6]; FILE * in, *out; +#ifdef HAVE_MKSTEMP + fd = mkstemp(bccfil); + if (fd == -1 || (out = fdopen(fd, "w")) == NULL) + adios (bccfil, "unable to create"); +#else mktemp (bccfil); if ((out = fopen (bccfil, "w")) == NULL) adios (bccfil, "unable to create"); +#endif chmod (bccfil, 0600); fprintf (out, "Date: %s\n", dtimenow (0));