From: Jonathan Rajotte Date: Tue, 13 Mar 2018 21:41:34 +0000 (-0400) Subject: Cleanup: uid and gid are never used by run_as_noworker() X-Git-Tag: v2.11.0-rc1~209 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=474d7e84db6398f9d9285570c41fa0d5d17c1e81;p=lttng-tools.git Cleanup: uid and gid are never used by run_as_noworker() Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/runas.c b/src/common/runas.c index f753d2454..cdb10e57c 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -419,8 +419,7 @@ end: * This is for debugging ONLY and should not be considered secure. */ static -int run_as_noworker(enum run_as_cmd cmd, - struct run_as_data *data, uid_t uid, gid_t gid) +int run_as_noworker(enum run_as_cmd cmd, struct run_as_data *data) { int ret, saved_errno; mode_t old_mask; @@ -455,7 +454,7 @@ int run_as(enum run_as_cmd cmd, struct run_as_data *data, uid_t uid, gid_t gid) } else { DBG("Using run_as without worker"); - ret = run_as_noworker(cmd, data, uid, gid); + ret = run_as_noworker(cmd, data); } return ret; }