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:
Stéphane Graber 2012-11-13 19:35:17 -05:00
parent ae9242c86a
commit 9935be1881

View File

@ -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)