Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd Improve behavior of `syslogd -s'.
details: https://anonhg.NetBSD.org/src/rev/851293dc9fdb
branches: trunk
changeset: 494071:851293dc9fdb
user: jwise <jwise%NetBSD.org@localhost>
date: Fri Jun 30 18:22:54 2000 +0000
description:
Improve behavior of `syslogd -s'.
Even if we are forwarding, don't bind to udp/514 if running with `-s'.
diffstat:
usr.sbin/syslogd/syslogd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 47b330d6d22d -r 851293dc9fdb usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c Fri Jun 30 18:19:28 2000 +0000
+++ b/usr.sbin/syslogd/syslogd.c Fri Jun 30 18:22:54 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syslogd.c,v 1.36 2000/06/30 18:03:50 jwise Exp $ */
+/* $NetBSD: syslogd.c,v 1.37 2000/06/30 18:22:54 jwise Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: syslogd.c,v 1.36 2000/06/30 18:03:50 jwise Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.37 2000/06/30 18:22:54 jwise Exp $");
#endif
#endif /* not lint */
@@ -1368,7 +1368,7 @@
logerror("socket");
continue;
}
- if (bind(*s, r->ai_addr, r->ai_addrlen) < 0) {
+ if (!SecureMode && bind(*s, r->ai_addr, r->ai_addrlen) < 0) {
close (*s);
logerror("bind");
continue;
Home |
Main Index |
Thread Index |
Old Index