X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fspost.c;h=f2d6311a2a3425110b7d54f49f6d72033da52fd7;hp=5bc41d8a25cde8b2e5375255b8b1040f42e11007;hb=045b9601403a216c400642229f2b291f85f88f7d;hpb=17e31955aca3a425a3c6d6fc128f6648f9550369 diff --git a/uip/spost.c b/uip/spost.c index 5bc41d8..f2d6311 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -347,13 +347,14 @@ main (int argc, char **argv) } else { #ifdef HAVE_MKSTEMP - mkstemp (tmpfil); + if ((out = fdopen( mkstemp (tmpfil), "w" )) == NULL ) + adios (tmpfil, "unable to create"); #else mktemp (tmpfil); -#endif if ((out = fopen (tmpfil, "w")) == NULL) adios (tmpfil, "unable to create"); chmod (tmpfil, 0600); +#endif } hdrtab = (msgstate == normal) ? NHeaders : RHeaders;