]> git.proxmox.com Git - lxc.git/blob - debian/patches/0013-console-use-correct-escape-sequence-check.patch
merge lxc-console improvements from stable branch
[lxc.git] / debian / patches / 0013-console-use-correct-escape-sequence-check.patch
1 From b50f5a815258541b6da0c772388d93ea303a4f3d Mon Sep 17 00:00:00 2001
2 From: Christian Brauner <christian.brauner@ubuntu.com>
3 Date: Sat, 11 Nov 2017 23:05:33 +0100
4 Subject: [PATCH 13/13] console: use correct escape sequence check
5
6 Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 ---
8 src/lxc/console.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/src/lxc/console.c b/src/lxc/console.c
12 index 8f6203f0..72c01b19 100644
13 --- a/src/lxc/console.c
14 +++ b/src/lxc/console.c
15 @@ -616,7 +616,7 @@ int lxc_console_cb_tty_stdin(int fd, uint32_t events, void *cbdata,
16 if (lxc_read_nointr(ts->stdinfd, &c, 1) <= 0)
17 return 1;
18
19 - if (ts->escape != -1) {
20 + if (ts->escape >= 1) {
21 /* we want to exit the console with Ctrl+a q */
22 if (c == ts->escape && !ts->saw_escape) {
23 ts->saw_escape = 1;
24 --
25 2.11.0
26