terminal: lxc_terminal_setup()

parent 8ded9244
...@@ -907,8 +907,8 @@ int lxc_terminal_setup(struct lxc_conf *conf) ...@@ -907,8 +907,8 @@ int lxc_terminal_setup(struct lxc_conf *conf)
int ret; int ret;
struct lxc_terminal *terminal = &conf->console; struct lxc_terminal *terminal = &conf->console;
if (terminal->path && !strcmp(terminal->path, "none")) { if (terminal->path && strcmp(terminal->path, "none") == 0) {
INFO("No terminal was requested"); INFO("No terminal requested");
return 0; return 0;
} }
...@@ -916,12 +916,10 @@ int lxc_terminal_setup(struct lxc_conf *conf) ...@@ -916,12 +916,10 @@ int lxc_terminal_setup(struct lxc_conf *conf)
if (ret < 0) if (ret < 0)
return -1; return -1;
/* create terminal log file */
ret = lxc_terminal_create_log_file(terminal); ret = lxc_terminal_create_log_file(terminal);
if (ret < 0) if (ret < 0)
goto err; goto err;
/* create terminal ringbuffer */
ret = lxc_terminal_create_ringbuf(terminal); ret = lxc_terminal_create_ringbuf(terminal);
if (ret < 0) if (ret < 0)
goto err; goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment