diff options
Diffstat (limited to 'src/unistd/setegid.c')
-rw-r--r-- | src/unistd/setegid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unistd/setegid.c b/src/unistd/setegid.c index 85348842..e6da2573 100644 --- a/src/unistd/setegid.c +++ b/src/unistd/setegid.c @@ -1,6 +1,8 @@ #include <unistd.h> +#include "libc.h" +#include "syscall.h" int setegid(gid_t egid) { - return setregid(-1, egid); + return __setxid(SYS_setresgid, -1, egid, -1); } |