X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fsetresgid.c;h=b9af540af2e66516b5105cbb694b9d4a7c3645af;hb=6688a778b0419eab32e715f269319248edee9da5;hp=3c85a82885cd35d9a260153a33138c1106ae72c9;hpb=1db283bf19c3e2a41345895b887a88aea086cb29;p=musl diff --git a/src/unistd/setresgid.c b/src/unistd/setresgid.c index 3c85a828..b9af540a 100644 --- a/src/unistd/setresgid.c +++ b/src/unistd/setresgid.c @@ -5,6 +5,5 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid) { - if (libc.rsyscall) return libc.rsyscall(__NR_setresgid, rgid, egid, sgid, 0, 0, 0); - return syscall(SYS_setresgid, rgid, egid, sgid); + return __setxid(SYS_setresgid, rgid, egid, sgid); }