The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/1655
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #1652 (again :) Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
From 17d3dcf7404f9e6f5bc2702193cb8cac1153ed9e Mon Sep 17 00:00:00 2001 From: Tycho Andersen <tycho.ander...@canonical.com> Date: Thu, 25 Feb 2016 09:22:30 -0700 Subject: [PATCH] exec: don't s/\\n/\\r\\n/g when interactive Closes #1652 (again :) Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com> --- shared/util_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/util_linux.go b/shared/util_linux.go index d9e7bc1..279d67c 100644 --- a/shared/util_linux.go +++ b/shared/util_linux.go @@ -59,6 +59,8 @@ void configure_pty(int fd) { term_settings.c_cflag |= HUPCL; + term_settings.c_oflag &= ~ONLCR; + if (tcsetattr(fd, TCSANOW, &term_settings) < 0) { fprintf(stderr, "Failed to set settings: %s\n", strerror(errno)); return;
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel