gpt-auto-generator: properly ignore value

A negative return code was treated as a true value.

(cherry picked from commit 8086ffacdb)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-01-15 21:22:06 -05:00
parent fe74e6931e
commit 9de44ece7d
+2 -2
View File
@@ -680,8 +680,8 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
r = parse_boolean(value);
if (r < 0)
log_warning("Failed to parse gpt-auto switch %s. Ignoring.", value);
arg_enabled = r;
else
arg_enabled = r;
} else if (streq(key, "root") && value) {