]> git.ipfire.org Git - thirdparty/lxc.git/commit
userns_exec_1: catch errors in the spawned process.
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 29 Jan 2014 15:17:06 +0000 (15:17 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 29 Jan 2014 15:56:54 +0000 (15:56 +0000)
commit565e571c8f88aeef8c23bf79479b0fde3c8e069b
tree01e7e6b6f93e26ebea31d7213d823af5ce9ce258
parentb1dad6f60dd68d6e44712ec469f34dbfd1c596ca
userns_exec_1: catch errors in the spawned process.

lxc_map_ids can call system(3), which on error from the
spawned process returns > 0.  No path should return > 0
when it meant success.  So check the lxc_map_ids() value
to be != rather than just < 0.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c