]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-start: remove unnecessary checks
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 28 Oct 2017 13:30:04 +0000 (15:30 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 16 Nov 2017 21:35:10 +0000 (16:35 -0500)
The console struct is internal and liblxc takes care of creating paths.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxc_start.c

index 5bd7f99c588d6c23df77def563ec2906a106e5e7..29db1881a1d48b4f9f41318e189410125825fb32 100644 (file)
@@ -291,16 +291,6 @@ int main(int argc, char *argv[])
                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 (ensure_path(&c->pidfile, my_args.pidfile) < 0) {
                        ERROR("failed to ensure pidfile '%s'", my_args.pidfile);