From: Mathieu Desnoyers Date: Wed, 21 Dec 2011 14:44:24 +0000 (-0500) Subject: librunas: clone another process also if not root X-Git-Tag: v2.0-pre16~6 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=6c9bfa35ac65810ce106433fb5721af842b75c78;ds=sidebyside librunas: clone another process also if not root Still useful to isolate umask(0). Signed-off-by: Mathieu Desnoyers --- diff --git a/librunas/runas.c b/librunas/runas.c index 12327c111..cbb70ee19 100644 --- a/librunas/runas.c +++ b/librunas/runas.c @@ -204,7 +204,6 @@ int run_as(int (*cmd)(void *data), void *data, uid_t uid, gid_t gid) uid, geteuid()); return -EPERM; } - return (*cmd)(data); } child_stack = malloc(CHILD_STACK_SIZE * 2);