From 902754749496d6de7811588e368b3559a548b1fc Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 1 Jul 2021 10:22:56 +0200 Subject: [PATCH] terminal: ensure newlines are turned into newlines+carriage return for terminal output Fixes: #3879 Signed-off-by: Christian Brauner --- src/lxc/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/terminal.c b/src/lxc/terminal.c index df3fc3c01..029e36bbb 100644 --- a/src/lxc/terminal.c +++ b/src/lxc/terminal.c @@ -474,7 +474,7 @@ int lxc_setup_tios(int fd, struct termios *oldtios) #ifdef IEXTEN newtios.c_lflag &= ~IEXTEN; #endif - newtios.c_oflag &= ~ONLCR; + newtios.c_oflag |= ONLCR; newtios.c_oflag |= OPOST; newtios.c_cc[VMIN] = 1; newtios.c_cc[VTIME] = 0; -- 2.47.2