X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=mts%2Fsmtp%2Fsmtp.c;h=773696b8a3d68a4b4b70c589eb4841e2e25cbe45;hb=3c9700d8d045f3ff26ce5dd2a174454dafc14822;hp=e2f65744f25564034a45e306a0b595f30b5c7ecf;hpb=910f3846bb30636fe25bdc6e06e72d50c6779bd9;p=mmh diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index e2f6574..773696b 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -247,7 +247,11 @@ rclient (char *server, char *protocol, char *service) if ((dp = strrchr(*ap, '/')) && *++dp == NULL) *--dp = NULL; snprintf (sm_tmpfil, sizeof(sm_tmpfil), "%s/smtpXXXXXX", *ap); +#ifdef HAVE_MKSTEMP + mkstemp (sm_tmpfil); +#else mktemp (sm_tmpfil); +#endif if ((sd = creat (sm_tmpfil, 0600)) != NOTOK) { sm_ispool = 1;