]> git.ipfire.org Git - thirdparty/lxc.git/commit
fix up lxc-usernsexec's exit status
authorTycho Andersen <tycho@tycho.ws>
Mon, 8 Jan 2018 16:20:24 +0000 (16:20 +0000)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 19 Jan 2018 13:40:05 +0000 (14:40 +0100)
commite0419ca1078b6e4b9ac144230e1603f6ba26c7cf
treea16d5db47dda43d4d3f975abe1385dd461c9d75e
parent3380e58a1fe060dfba7a7d09c1b492ff46931d3c
fix up lxc-usernsexec's exit status

* exit(1) when there is an option parsing error
* exit(0) when the user explicitly asks for help
* exit(1) when the user specifies an invalid option

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
src/lxc/tools/lxc_usernsexec.c