diff options
-rw-r--r-- | abuild-sudo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/abuild-sudo.c b/abuild-sudo.c index 7b6235a..9377756 100644 --- a/abuild-sudo.c +++ b/abuild-sudo.c @@ -97,6 +97,8 @@ int main(int argc, const char *argv[]) argv[0] = path; /* set our uid to root so bbsuid --install works */ setuid(0); + /* set our gid to root so apk commit hooks run with the same gid as for "sudo apk add ..." */ + setgid(0); execv(path, (char * const*)argv); perror(path); return 1; |