]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
terminal: ensure newlines are turned into newlines+carriage return for terminal output 3892/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 1 Jul 2021 08:22:56 +0000 (10:22 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 1 Jul 2021 08:23:47 +0000 (10:23 +0200)
Fixes: #3879
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/terminal.c

index df3fc3c01ede42f435b0af10eb241611aa0318d1..029e36bbb6d537f7d0e00c98c04655a5a1e47f5c 100644 (file)
@@ -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;