From 1a443ac10cb88722bb6b171ebc1431c03bccdc73 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 28 Feb 2018 12:23:06 +0100 Subject: [PATCH] terminal: lxc_terminal_setup() Signed-off-by: Christian Brauner --- src/lxc/terminal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lxc/terminal.c b/src/lxc/terminal.c index 3369603b0..715982bb5 100644 --- a/src/lxc/terminal.c +++ b/src/lxc/terminal.c @@ -907,8 +907,8 @@ int lxc_terminal_setup(struct lxc_conf *conf) int ret; struct lxc_terminal *terminal = &conf->console; - if (terminal->path && !strcmp(terminal->path, "none")) { - INFO("No terminal was requested"); + if (terminal->path && strcmp(terminal->path, "none") == 0) { + INFO("No terminal requested"); return 0; } @@ -916,12 +916,10 @@ int lxc_terminal_setup(struct lxc_conf *conf) if (ret < 0) return -1; - /* create terminal log file */ ret = lxc_terminal_create_log_file(terminal); if (ret < 0) goto err; - /* create terminal ringbuffer */ ret = lxc_terminal_create_ringbuf(terminal); if (ret < 0) goto err; -- 2.47.2