mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 12:06:12 +00:00
Check return value of all system calls in startone
One of the system() calls in src/tests/startone.c wasn't checked. This was causing a build failure now that -Wall -Werror are set by default. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
ae9242c86a
commit
9935be1881
@ -180,7 +180,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
ret = system("mkdir -p /var/lib/lxc/lxctest1/rootfs//usr/local/libexec/lxc");
|
||||
if (!ret)
|
||||
system("mkdir -p /var/lib/lxc/lxctest1/rootfs/usr/lib/lxc/");
|
||||
ret = system("mkdir -p /var/lib/lxc/lxctest1/rootfs/usr/lib/lxc/");
|
||||
if (!ret)
|
||||
ret = system("cp src/lxc/lxc-init /var/lib/lxc/lxctest1/rootfs//usr/local/libexec/lxc");
|
||||
if (!ret)
|
||||
|
Loading…
Reference in New Issue
Block a user