]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Check return value of all system calls in startone
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 14 Nov 2012 00:35:17 +0000 (19:35 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 14 Nov 2012 00:35:17 +0000 (19:35 -0500)
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>
src/tests/startone.c

index d5b8d3fd309836e4c034fb5ba630fcc6604a8268..73c8f00c77651d71952d59df4b784921f95268f1 100644 (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)