From 7a687c3175905db4d61e5be231b5465ee859d536 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 28 Oct 2017 15:30:04 +0200 Subject: [PATCH] lxc-start: remove unnecessary checks The console struct is internal and liblxc takes care of creating paths. Signed-off-by: Christian Brauner --- src/lxc/lxc_start.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lxc/lxc_start.c b/src/lxc/lxc_start.c index 5bd7f99c5..29db1881a 100644 --- a/src/lxc/lxc_start.c +++ b/src/lxc/lxc_start.c @@ -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); -- 2.47.2