From 65c4347d6e8cb3818e8ccf26af76f460196f5b62 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 1 Oct 2025 19:24:05 +0200 Subject: [PATCH] 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. --- src/nspawn/nspawn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 25af8520e2..0b01dbc450 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: