X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fsetregid.c;h=f5a8972ae4f509ed80d946ef74c3603bcfd0ca34;hb=743546a9339d3da4304fd63f74872e90ac792f63;hp=158753bea0e3d0a14d69db95f79c51c7c912c952;hpb=2cdfb7ca26f46f151afbc23d5d94fc68597137f5;p=musl diff --git a/src/unistd/setregid.c b/src/unistd/setregid.c index 158753be..f5a8972a 100644 --- a/src/unistd/setregid.c +++ b/src/unistd/setregid.c @@ -4,6 +4,5 @@ int setregid(gid_t rgid, gid_t egid) { - if (libc.rsyscall) return libc.rsyscall(__NR_setregid, rgid, egid, 0, 0, 0, 0); - return syscall2(__NR_setregid, rgid, egid); + return __setxid(SYS_setregid, rgid, egid, 0); }