From 6c9bfa35ac65810ce106433fb5721af842b75c78 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 21 Dec 2011 09:44:24 -0500 Subject: [PATCH] librunas: clone another process also if not root Still useful to isolate umask(0). Signed-off-by: Mathieu Desnoyers --- librunas/runas.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.34.1