nspawn: properly unset arg_link_journal_try, when --link-journal= is specified

This commit is contained in:
Lennart Poettering
2014-12-12 17:30:25 +01:00
parent 7430ec6ac0
commit 53e438e301
+9 -5
View File
@@ -477,15 +477,19 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_LINK_JOURNAL:
if (streq(optarg, "auto"))
if (streq(optarg, "auto")) {
arg_link_journal = LINK_AUTO;
else if (streq(optarg, "no"))
arg_link_journal_try = false;
} else if (streq(optarg, "no")) {
arg_link_journal = LINK_NO;
else if (streq(optarg, "guest"))
arg_link_journal_try = false;
} else if (streq(optarg, "guest")) {
arg_link_journal = LINK_GUEST;
else if (streq(optarg, "host"))
arg_link_journal_try = false;
} else if (streq(optarg, "host")) {
arg_link_journal = LINK_HOST;
else if (streq(optarg, "try-guest")) {
arg_link_journal_try = false;
} else if (streq(optarg, "try-guest")) {
arg_link_journal = LINK_GUEST;
arg_link_journal_try = true;
} else if (streq(optarg, "try-host")) {