argc_add += 2;
argv = malloc((argc + argc_add) * sizeof(*argv));
- if (!argv)
+ if (!argv) {
+ SYSERROR("Allocating init args failed");
goto out1;
+ }
- if (!my_args->init_path)
+ if (!my_args->init_path) {
+ ERROR("Init path missing");
goto out2;
+ }
argv[i++] = my_args->init_path;
{
struct execute_args args = {.argv = argv, .quiet = quiet};
+ TRACE("Doing lxc_execute");
handler->conf->is_execute = 1;
return __lxc_start(name, handler, &execute_start_ops, &args, lxcpath,
backgrounded, error_num);
.argv = argv,
};
+ TRACE("Doing lxc_start");
return __lxc_start(name, handler, &start_ops, &start_arg, lxcpath, backgrounded, error_num);
}