openbsd-ports/mail/nmh/patches/patch-ad
kevlo e6a3c04669 - Upgrade to 1.0.3 and fix the security problem.
- Mark unbroken.
- Update the MASTER_SITES.
2000-03-08 05:11:35 +00:00

22 lines
494 B
Plaintext

--- uip/mshcmds.c.orig Sun Feb 6 04:40:55 2000
+++ uip/mshcmds.c Tue Feb 29 18:08:49 2000
@@ -935,16 +935,12 @@
/* foil search of .mh_profile */
snprintf (buf, sizeof(buf), "%sXXXXXX", invo_name);
-/*
- Mkstemp work postponed until later -Doug
#ifdef HAVE_MKSTEMP
- vec[0] = (char *)mkstemp (buf);
+ close (mkstemp (buf));
+ vec[0] = buf;
#else
-*/
vec[0] = (char *)mktemp (buf);
-/*
#endif
-*/
vec[vecp++] = "-file";
vec[vecp] = NULL;
if (!msgp)