Commit 1a9eaaab by Stéphane Graber Committed by GitHub

Merge pull request #1432 from brauner/2017-02-15/fix_lxc_execute_return_code

tools: exit with return code of lxc_execute()
parents fcab4fec d04813f9
...@@ -290,7 +290,7 @@ init_lxc_static_SOURCES += ../include/getline.c ...@@ -290,7 +290,7 @@ init_lxc_static_SOURCES += ../include/getline.c
endif endif
endif endif
init_lxc_static_LDFLAGS = -static init_lxc_static_LDFLAGS = -all-static
init_lxc_static_LDADD = @CAP_LIBS@ init_lxc_static_LDADD = @CAP_LIBS@
init_lxc_static_CFLAGS = $(AM_CFLAGS) -DNO_LXC_CONF init_lxc_static_CFLAGS = $(AM_CFLAGS) -DNO_LXC_CONF
endif endif
......
...@@ -166,5 +166,5 @@ int main(int argc, char *argv[]) ...@@ -166,5 +166,5 @@ int main(int argc, char *argv[])
if (ret < 0) if (ret < 0)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
exit(EXIT_SUCCESS); exit(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