Commit 9935be18 by Stéphane Graber

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: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent ae9242c8
...@@ -180,7 +180,7 @@ int main(int argc, char *argv[]) ...@@ -180,7 +180,7 @@ int main(int argc, char *argv[])
ret = system("mkdir -p /var/lib/lxc/lxctest1/rootfs//usr/local/libexec/lxc"); ret = system("mkdir -p /var/lib/lxc/lxctest1/rootfs//usr/local/libexec/lxc");
if (!ret) 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) if (!ret)
ret = system("cp src/lxc/lxc-init /var/lib/lxc/lxctest1/rootfs//usr/local/libexec/lxc"); ret = system("cp src/lxc/lxc-init /var/lib/lxc/lxctest1/rootfs//usr/local/libexec/lxc");
if (!ret) if (!ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment