openbsd-ports/mail/nmh/patches/patch-ad

22 lines
494 B
Plaintext
Raw Normal View History

--- 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 @@
1998-04-30 00:24:30 -04:00
/* 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));
1998-04-30 00:24:30 -04:00
+ vec[0] = buf;
#else
-*/
vec[0] = (char *)mktemp (buf);
-/*
#endif
-*/
1998-04-30 00:24:30 -04:00
vec[vecp++] = "-file";
vec[vecp] = NULL;
if (!msgp)