librunas: clone another process also if not root
[lttng-tools.git] / librunas / runas.c
index 12327c1111fd15715174d41947f5e41db26beca3..cbb70ee193469dfe35439b8735fcbdda9ebad938 100644 (file)
@@ -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);
This page took 0.023318 seconds and 4 git commands to generate.