From b5884878a2874447b2a9f07f324a7cd909d96d48 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 6 Nov 2014 21:53:34 +0100 Subject: util: simplify proc_cmdline() to reuse get_process_cmdline() Also, make all parsing of the kernel cmdline non-fatal. --- src/fsck/fsck.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fsck') diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 70a591883e..556221759a 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -236,7 +236,10 @@ int main(int argc, char *argv[]) { umask(0022); - parse_proc_cmdline(parse_proc_cmdline_item); + q = parse_proc_cmdline(parse_proc_cmdline_item); + if (q < 0) + log_warning("Failed to parse kernel command line, ignoring: %s", strerror(-q)); + test_files(); if (!arg_force && arg_skip) -- cgit v1.2.3