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;