[ulogd PATCH] ulogd: fix logleve handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It was always default if not specified by command parameter.

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@xxxxxxxxxxxxx>
---
 src/ulogd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ulogd.c b/src/ulogd.c
index 2c0fbd1..670a6e2 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)
--
1.8.5.3
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux