0fe6244770
stderr) to proactively avoid error messages with sendmail 8.12.x.
18 lines
451 B
Text
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);
|