summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/exec/exec.c b/exec/exec.c
index c32c637..4a8b22f 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -14,6 +14,7 @@ int main(int argc, char *argv[])
return NOT_RUN;
}
+ setuid(geteuid());
execvp(argv[1], argv + 1);
fprintf(stderr, "%s: %s: %s\n", argv[0], argv[1], strerror(errno));
if (errno == ENOENT) {