summaryrefslogtreecommitdiff
path: root/mail/mutt/patches/patch-al
blob: d52bb22e55c42d4e837e5cb44b8f079dc11ffe32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-al,v 1.3 2001/10/18 08:04:25 tron Exp $

--- sendlib.c	2001/10/11 07:58:26	2.88
+++ sendlib.c	2001/10/17 16:22:48	2.89
@@ -1831,6 +1831,13 @@
 	if (dup (1) < 0)
 	  _exit (S_ERR);
       }
+      else 
+      {
+	if (open ("/dev/null", O_WRONLY | O_APPEND) < 0)	/* stdout */
+	  _exit (S_ERR);
+	if (open ("/dev/null", O_RDWR | O_APPEND) < 0)		/* stderr */
+	  _exit (S_ERR);
+      }
 
       execv (path, args);
       _exit (S_ERR);