From 7cd9f6a2c506a8619473435a02cb2385dec90b03 Mon Sep 17 00:00:00 2001 From: Ken-ichirou MATSUZAWA Date: Fri, 7 Mar 2014 23:03:48 +0100 Subject: ulogd: fix loglevel handling It was always default if not specified by command parameter. Signed-off-by: Ken-ichirou MATSUZAWA --- src/ulogd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ulogd.c b/src/ulogd.c index 810f828..e7cde39 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -1383,9 +1383,10 @@ int main(int argc, char* argv[]) } /* command line has precedence on config file */ - if (loglevel) + if (loglevel) { loglevel_ce.u.value = loglevel; loglevel_ce.flag |= CONFIG_FLAG_VAL_PROTECTED; + } if (ulogd_pidfile) { if (create_pidfile() < 0) -- cgit v1.2.3