pkgsrc/mail/mutt/patches/patch-al
tron 0fe6244770 Add fix for mutt bug#828 (mail transport agent invoked without stdout and
stderr) to proactively avoid error messages with sendmail 8.12.x.
2001-10-18 08:04:25 +00:00

18 lines
451 B
Text

$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);