summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec/exec.c b/exec/exec.c
index f00f768..fea23ed 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -39,6 +39,8 @@ int main(int argc, char *argv[])
log_execution(argc, argv);
setuid(geteuid());
+ setgid(0);
+
execvp(argv[1], argv + 1);
fprintf(stderr, "%s: %s: %s\n", argv[0], argv[1], strerror(errno));
if (errno == ENOENT) {