nspawn: set arguments directly

There's no point in going through handle_arg_console() now that all the
checks have been moved out of it.
This commit is contained in:
David Tardon
2025-10-02 16:19:03 +02:00
parent 99df84ef23
commit 65c4347d6e
+2 -3
View File
@@ -1478,9 +1478,8 @@ static int parse_argv(int argc, char *argv[]) {
case 'P':
case ARG_PIPE:
r = handle_arg_console("pipe");
if (r <= 0)
return r;
arg_console_mode = CONSOLE_PIPE;
arg_settings_mask |= SETTING_CONSOLE_MODE;
break;
case ARG_NO_PAGER: