From 748d5a19097f020d22d2b95fb9b2c89b858f0d67 Mon Sep 17 00:00:00 2001 From: jakob Date: Tue, 21 Oct 2003 19:23:50 +0000 Subject: [PATCH] fix fd problem; patch from daniel lucq --- net/arpwatch/patches/patch-report_c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 net/arpwatch/patches/patch-report_c diff --git a/net/arpwatch/patches/patch-report_c b/net/arpwatch/patches/patch-report_c new file mode 100644 index 00000000000..9e4d89d85dd --- /dev/null +++ b/net/arpwatch/patches/patch-report_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-report_c,v 1.1 2003/10/21 19:23:50 jakob Exp $ +--- report.c.orig Sun Oct 1 01:41:10 2000 ++++ report.c Tue Oct 21 21:22:27 2003 +@@ -343,6 +343,12 @@ report(register char *title, register u_ + syslog(LOG_ERR, "dup2: %m"); + exit(1); + } ++ ++ if (freopen("/dev/null", "w", stderr) == NULL) { ++ syslog(LOG_ERR, "freopen: %m"); ++ exit(1); ++ } ++ + /* XXX Need to freopen()? */ + /* Always Deliver interactively (pause when child depth gets large) */ + execl(sendmail, "sendmail", "-odi", watcher, NULL);