From e1a48622522776f8f80b119f6d3e5bb604b601a5 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 7 Feb 2021 13:29:21 -0500 Subject: call setuid() so things like apt work properly --- exec/exec.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.1