projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW
[musl]
/
src
/
unistd
/
setuid.c
diff --git
a/src/unistd/setuid.c
b/src/unistd/setuid.c
index
9e9da61
..
602ecbb
100644
(file)
--- a/
src/unistd/setuid.c
+++ b/
src/unistd/setuid.c
@@
-4,6
+4,5
@@
int setuid(uid_t uid)
{
- if (libc.rsyscall) return libc.rsyscall(__NR_setuid, uid, 0, 0, 0, 0, 0);
- return syscall1(__NR_setuid, uid);
+ return __setxid(SYS_setuid, uid, 0, 0);
}