From: David Tardon Date: Wed, 1 Oct 2025 17:24:05 +0000 (+0200) Subject: nspawn: set arguments directly X-Git-Tag: v259-rc1~386^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65c4347d6e8cb3818e8ccf26af76f460196f5b62;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 25af8520e23..0b01dbc450e 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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: