Commit 5268ae80 authored by Henrik Riomar's avatar Henrik Riomar Committed by Ariadne Conill

abuild-sudo.c: setgid as well

set our gid to root so apk commit hooks run with the same gid as when
running  "sudo apk add ..." from command line.
parent 79525de5
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment