From: Serge Hallyn Date: Thu, 19 Dec 2013 19:59:30 +0000 (-0600) Subject: fix lxc-usernsexec regression X-Git-Tag: lxc-1.0.0.beta2~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b543ce9624d7f88b6ef99b4ae0096b5c9c0bfcf4;p=thirdparty%2Flxc.git fix lxc-usernsexec regression In what should have been a straightforward fix for a bug found by priority, I sent 1 instead of '1' from parent to child, while the child checked for '1'. Fix. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxc_usernsexec.c b/src/lxc/lxc_usernsexec.c index 98e4fa24b..e36ff3487 100644 --- a/src/lxc/lxc_usernsexec.c +++ b/src/lxc/lxc_usernsexec.c @@ -425,7 +425,7 @@ int main(int argc, char *argv[]) exit(1); } - buf[0] = 1; + buf[0] = '1'; if (map_child_uids(pid, active_map)) { fprintf(stderr, "error mapping child\n"); ret = 0;