diff options
author | Ken-ichirou MATSUZAWA <chamaken@gmail.com> | 2014-03-07 23:03:48 +0100 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2014-03-07 23:07:11 +0100 |
commit | 7cd9f6a2c506a8619473435a02cb2385dec90b03 (patch) | |
tree | 649b71b26c2d546819dc16cab39904afce6792fe /src/ulogd.c | |
parent | 26480953dab3d07fc78f4c437ffefeb25fee0d5b (diff) |
ulogd: fix loglevel handling
It was always default if not specified by command parameter.
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Diffstat (limited to 'src/ulogd.c')
-rw-r--r-- | src/ulogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |