From: Lennart Poettering Date: Wed, 8 Nov 2023 12:57:09 +0000 (+0100) Subject: execute: use right fd to fix tty size X-Git-Tag: v255-rc2~45^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c34eaeb5ebffff61157022fb618fd69c11a67aa6;p=thirdparty%2Fsystemd.git execute: use right fd to fix tty size --- diff --git a/src/core/execute.c b/src/core/execute.c index f3e895ea7f2..e63137440a6 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -171,8 +171,7 @@ void exec_context_tty_reset(const ExecContext *context, const ExecParameters *p) if (context->tty_reset) (void) reset_terminal_fd(fd, /* switch_to_text= */ true); - if (p && p->stdin_fd >= 0) - (void) exec_context_apply_tty_size(context, p->stdin_fd, path); + (void) exec_context_apply_tty_size(context, fd, path); if (context->tty_vt_disallocate && path) (void) vt_disallocate(path);