nspawn: catch config mistake of specifying -b and args

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-02-24 14:11:11 +01:00
parent d710d36375
commit cb96a2c69a
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -267,6 +267,11 @@ static int parse_argv(int argc, char *argv[]) {
}
}
if (optind < argc && arg_boot) {
log_error("Cannot specify a command together with '-b'");
return -EINVAL;
}
return 1;
}