From: claudio Date: Mon, 25 Jul 2016 14:29:28 +0000 (+0000) Subject: Initialize the log subsytem in the SE like it is done in the RDE. Without X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=14c1d5be6cf8c3248653f99e20ce3b92ecb90c3c;p=openbsd 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@ --- 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);