mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 18:07:30 +00:00
lxc-snapshot: fix segfault
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1751780 Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
69556eaf83
commit
07d7dc9438
@ -126,6 +126,12 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (!c->lxc_conf) {
|
||||
fprintf(stderr, "No container config specified\n");
|
||||
lxc_container_put(c);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (!c->may_control(c)) {
|
||||
fprintf(stderr, "Insufficent privileges to control %s\n",
|
||||
my_args.name);
|
||||
|
Loading…
Reference in New Issue
Block a user