diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-06 21:53:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-07 01:19:56 +0100 |
commit | b5884878a2874447b2a9f07f324a7cd909d96d48 (patch) | |
tree | 7187916b29404dad30f53be8ed0393a095571e0d /src/core/kmod-setup.c | |
parent | f2997962ff8aeea577bed878d3bc4e4f64784e45 (diff) |
util: simplify proc_cmdline() to reuse get_process_cmdline()
Also, make all parsing of the kernel cmdline non-fatal.
Diffstat (limited to 'src/core/kmod-setup.c')
-rw-r--r-- | src/core/kmod-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c index 2f3f608830..38e1726e08 100644 --- a/src/core/kmod-setup.c +++ b/src/core/kmod-setup.c @@ -47,7 +47,7 @@ static void systemd_kmod_log( static bool cmdline_check_kdbus(void) { _cleanup_free_ char *line = NULL; - if (proc_cmdline(&line) <= 0) + if (proc_cmdline(&line) < 0) return false; return strstr(line, "kdbus") != NULL; |