From: Christian Brauner Date: Sat, 28 Oct 2017 13:30:04 +0000 (+0200) Subject: lxc-start: remove unnecessary checks X-Git-Tag: lxc-3.0.0.beta1~201^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4832eeb388608b03dbda3bc3bf28a9072a72d3;p=thirdparty%2Flxc.git lxc-start: remove unnecessary checks The console struct is internal and liblxc takes care of creating paths. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/tools/lxc_start.c b/src/lxc/tools/lxc_start.c index 639248e0e..69e00471e 100644 --- a/src/lxc/tools/lxc_start.c +++ b/src/lxc/tools/lxc_start.c @@ -326,16 +326,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);