X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Funistd%2Fsetregid.c;h=ff2607dc2459130eb4ac8af951a84b06c5d083a1;hp=d25dab76ac96d7c61786f7ffb22f20f876124d8c;hb=aa398f56fa398f2202b04e82c67f822f3233786f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/src/unistd/setregid.c b/src/unistd/setregid.c index d25dab76..ff2607dc 100644 --- a/src/unistd/setregid.c +++ b/src/unistd/setregid.c @@ -4,6 +4,6 @@ int setregid(gid_t rgid, gid_t egid) { - if (libc.rsyscall) return libc.rsyscall(__NR_setregid32, rgid, egid, 0, 0, 0, 0); - return syscall2(__NR_setregid32, rgid, egid); + if (libc.rsyscall) return libc.rsyscall(__NR_setregid, rgid, egid, 0, 0, 0, 0); + return syscall(SYS_setregid, rgid, egid); }