]> 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)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Nov 2017 23:58:12 +0000 (00:58 +0100)
The console struct is internal and liblxc takes care of creating paths.

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

index 13758acec547cce9e18803bca47dfb8cdc8a4ce4..a5c5148d725faccc6e9d8affc76b4493e2ca3314 100644 (file)
@@ -323,16 +323,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);