openbsd-ports/mail/nmh/patches/patch-uip_mshcmds_c
2002-09-30 00:29:02 +00:00

23 lines
587 B
Plaintext

$OpenBSD: patch-uip_mshcmds_c,v 1.1 2002/09/30 00:29:02 pvalchev Exp $
--- uip/mshcmds.c.orig Fri Feb 4 13:28:24 2000
+++ uip/mshcmds.c Mon Sep 30 18:22:06 2002
@@ -935,16 +935,12 @@ forwcmd (char **args)
/* 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)