projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix crash in wordfree if we_offs is not initialized by the caller
[musl]
/
src
/
unistd
/
setresgid.c
diff --git
a/src/unistd/setresgid.c
b/src/unistd/setresgid.c
index
3c85a82
..
b9af540
100644
(file)
--- 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)
{
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);
}
}