about summary refs log tree commit diff
path: root/src/unistd/setuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/setuid.c')
-rw-r--r--src/unistd/setuid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unistd/setuid.c b/src/unistd/setuid.c
index 61e8be55..da6816de 100644
--- 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 syscall(SYS_setuid, uid);
+	return __rsyscall(__NR_setuid, uid, 0, 0, 0, 0, 0);
 }