Unverified Commit 7a687c31 by Christian Brauner Committed by Stéphane Graber

lxc-start: remove unnecessary checks

The console struct is internal and liblxc takes care of creating paths. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 3909f187
...@@ -291,16 +291,6 @@ int main(int argc, char *argv[]) ...@@ -291,16 +291,6 @@ int main(int argc, char *argv[])
goto out; goto out;
} }
if (ensure_path(&conf->console.path, my_args.console) < 0) {
ERROR("failed to ensure console path '%s'", my_args.console);
goto out;
}
if (ensure_path(&conf->console.log_path, my_args.console_log) < 0) {
ERROR("failed to ensure console log '%s'", my_args.console_log);
goto out;
}
if (my_args.pidfile != NULL) { if (my_args.pidfile != NULL) {
if (ensure_path(&c->pidfile, my_args.pidfile) < 0) { if (ensure_path(&c->pidfile, my_args.pidfile) < 0) {
ERROR("failed to ensure pidfile '%s'", my_args.pidfile); ERROR("failed to ensure pidfile '%s'", my_args.pidfile);
......
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