From 14c1d5be6cf8c3248653f99e20ce3b92ecb90c3c Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 25 Jul 2016 14:29:28 +0000 Subject: [PATCH] Initialize the log subsytem in the SE like it is done in the RDE. Without this all logging is going via stderr to /dev/null which is not helpful. OK deraadt@ phessler@ --- usr.sbin/bgpd/session.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index e5b0856e4d8..e70c9db13d7 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.350 2016/07/21 10:13:58 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.351 2016/07/25 14:29:28 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer @@ -202,6 +202,9 @@ session_main(int debug, int verbose) void *newp; short events; + log_init(debug); + log_verbose(verbose); + if ((pw = getpwnam(BGPD_USER)) == NULL) fatal(NULL); -- 2.20.1