diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/setregid.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setregid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/setregid.c b/sysdeps/unix/sysv/linux/i386/setregid.c index 4f89731d65..d49bf47b9d 100644 --- a/sysdeps/unix/sysv/linux/i386/setregid.c +++ b/sysdeps/unix/sysv/linux/i386/setregid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1998, 2000, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -42,7 +42,7 @@ int __setregid (gid_t rgid, gid_t egid) { #if __ASSUME_32BITUIDS > 0 - return INLINE_SYSCALL (setregid32, 2, rgid, egid); + return INLINE_SYSCALL (setresgid32, 3, rgid, egid, -1); #else # ifdef __NR_setregid32 if (__libc_missing_32bit_uids <= 0) @@ -50,7 +50,7 @@ __setregid (gid_t rgid, gid_t egid) int result; int saved_errno = errno; - result = INLINE_SYSCALL (setregid32, 2, rgid, egid); + result = INLINE_SYSCALL (setresgid32, 3, rgid, egid, -1); if (result == 0 || errno != ENOSYS) return result; @@ -66,7 +66,7 @@ __setregid (gid_t rgid, gid_t egid) return -1; } - return INLINE_SYSCALL (setregid, 2, rgid, egid); + return INLINE_SYSCALL (setresgid, 3, rgid, egid, -1); #endif } weak_alias (__setregid, setregid) |