1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

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

This commit is contained in:
Lennart Poettering 2014-12-12 16:58:30 +01:00
parent 7430ec6ac0
commit 53e438e301

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")) {