X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Funistd%2Fsetregid.c;h=f5a8972ae4f509ed80d946ef74c3603bcfd0ca34;hp=ff2607dc2459130eb4ac8af951a84b06c5d083a1;hb=f143458223f90262a9c2d929f9e815a74e3aa139;hpb=aa398f56fa398f2202b04e82c67f822f3233786f diff --git a/src/unistd/setregid.c b/src/unistd/setregid.c index ff2607dc..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 syscall(SYS_setregid, rgid, egid); + return __setxid(SYS_setregid, rgid, egid, 0); }