diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2016-07-25 14:29:29 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2016-07-25 14:29:29 +0000 |
commit | 27ba747e5b8915d7baaae7e2d08c12dc59a6c350 (patch) | |
tree | ed8d7d53842ebca5514168710179cf207838e276 /usr.sbin | |
parent | 4245fc4bf1e7fb6600fb8abbaacbd6d62b138b7b (diff) |
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@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/session.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <henning@openbsd.org> @@ -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); |