In order to cause c->is_defined() to become true.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
lxc_container_put(c);
exit(EXIT_FAILURE);
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ ERROR("Out of memory setting new config filename");
+ lxc_container_put(c);
+ exit(EXIT_FAILURE);
+ }
}
if (!c->may_control(c)) {
lxc_container_put(c);
return 1;
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ ERROR("Out of memory setting new config filename");
+ lxc_container_put(c);
+ return 1;
+ }
}
if (!c->may_control(c)) {
lxc_container_put(c);
exit(1);
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ lxc_container_put(c);
+ exit(1);
+ }
}
if (!c->may_control(c)) {
lxc_container_put(c);
exit(EXIT_FAILURE);
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ lxc_container_put(c);
+ exit(EXIT_FAILURE);
+ }
}
if (!c->may_control(c)) {
fprintf(stderr, "Failed to load rcfile\n");
goto out;
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ goto out;
+ }
}
if (!c->may_control(c)) {
lxc_container_put(c);
exit(EXIT_FAILURE);
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ lxc_container_put(c);
+ exit(EXIT_FAILURE);
+ }
}
if (!c->may_control(c)) {
ERROR("Failed to load rcfile");
goto err1;
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ ERROR("Out of memory setting new config filename");
+ goto err1;
+ }
}
if (!c->is_running(c)) {
lxc_container_put(c);
exit(1);
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ ERROR("Out of memory setting new config filename");
+ lxc_container_put(c);
+ exit(1);
+ }
}
if (!c->may_control(c)) {
lxc_container_put(c);
return -1;
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ lxc_container_put(c);
+ return -1;
+ }
}
if (!c->may_control(c)) {
lxc_container_put(c);
exit(EXIT_FAILURE);
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ lxc_container_put(c);
+ exit(EXIT_FAILURE);
+ }
}
if (!c->may_control(c)) {
fprintf(stderr, "Failed to load rcfile\n");
goto out;
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ goto out;
+ }
}
if (!c->may_control(c)) {
lxc_container_put(c);
exit(1);
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ ERROR("Out of memory setting new config filename");
+ lxc_container_put(c);
+ exit(1);
+ }
}
if (!c->unfreeze(c)) {
lxc_container_put(c);
return 1;
}
+ c->configfile = strdup(my_args.rcfile);
+ if (!c->configfile) {
+ fprintf(stderr, "Out of memory setting new config filename\n");
+ lxc_container_put(c);
+ return 1;
+ }
}
if (!c->wait(c, my_args.states, my_args.timeout)) {