summaryrefslogtreecommitdiff
path: root/src/unistd/setreuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/setreuid.c')
-rw-r--r--src/unistd/setreuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/setreuid.c b/src/unistd/setreuid.c
index 47c67306..505e8bc1 100644
--- a/src/unistd/setreuid.c
+++ b/src/unistd/setreuid.c
@@ -5,5 +5,5 @@
int setreuid(uid_t ruid, uid_t euid)
{
if (libc.rsyscall) return libc.rsyscall(__NR_setreuid, ruid, euid, 0, 0, 0, 0);
- return syscall2(__NR_setreuid, ruid, euid);
+ return syscall(SYS_setreuid, ruid, euid);
}