if (!c->may_control(c)) {
ERROR("Insufficent privileges to control %s:%s", my_args.lxcpath[0], my_args.name);
+ lxc_container_put(c);
return -1;
}
if (!c1->may_control(c1)) {
fprintf(stderr, "Insufficent privileges to control %s\n", orig);
+ lxc_container_put(c1);
return -1;
}
if (!c->may_control(c)) {
fprintf(stderr, "Insufficent privileges to control %s\n", my_args.name);
+ lxc_container_put(c);
return -1;
}
if (!c->is_running(c)) {
fprintf(stderr, "%s is not running\n", my_args.name);
+ lxc_container_put(c);
exit(EXIT_FAILURE);
}
ret = c->console(c, my_args.ttynum, 0, 1, 2, my_args.escape);
if (ret < 0) {
+ lxc_container_put(c);
exit(EXIT_FAILURE);
}
+ lxc_container_put(c);
return EXIT_SUCCESS;
}
if (!c->may_control(c)) {
fprintf(stderr, "Insufficent privileges to control %s\n", my_args.name);
+ lxc_container_put(c);
return -1;
}
if (!c->may_control(c)) {
ERROR("Insufficent privileges to control %s:%s", my_args.lxcpath[0], my_args.name);
+ lxc_container_put(c);
return -1;
}
if (!c->may_control(c)) {
fprintf(stderr, "Insufficent privileges to control %s\n", c->name);
+ lxc_container_put(c);
return -1;
}
}
}
+ lxc_container_put(c);
return 0;
}
if (!c->may_control(c)) {
fprintf(stderr, "Insufficent privileges to control %s\n", my_args.name);
+ lxc_container_put(c);
return -1;
}
if (!c->may_control(c)) {
ERROR("Insufficent privileges to control %s:%s", my_args.lxcpath[0], my_args.name);
+ lxc_container_put(c);
return -1;
}
if (!c->may_control(c)) {
fprintf(stderr, "Insufficent privileges to control %s\n", c->name);
+ lxc_container_put(c);
return -1;
}