diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-10 02:02:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-10 02:02:28 +0000 |
commit | bba849fc7f8c04490f4a7dd4535142ebfa00174b (patch) | |
tree | f7064e153b383712a2b959fbf391417ceb609f19 /libc/sysdeps/linux/common/seteuid.c | |
parent | 6c6ffb0220c09b92ffa4a0cb89ec985d40e9e275 (diff) |
add support for newer style kernel calls since some arches (like sparc) only provide the newer versions
Diffstat (limited to 'libc/sysdeps/linux/common/seteuid.c')
-rw-r--r-- | libc/sysdeps/linux/common/seteuid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/seteuid.c b/libc/sysdeps/linux/common/seteuid.c index 6d8c9ae3e..e5ed576ff 100644 --- a/libc/sysdeps/linux/common/seteuid.c +++ b/libc/sysdeps/linux/common/seteuid.c @@ -13,7 +13,7 @@ libc_hidden_proto(seteuid) -#if defined __NR_setresuid && defined __USE_GNU +#if defined __NR_setresuid || defined __NR_setresuid32 libc_hidden_proto(setresuid) #endif libc_hidden_proto(setreuid) @@ -28,7 +28,7 @@ int seteuid(uid_t uid) return -1; } -#if defined __NR_setresuid && defined __USE_GNU +#if defined __NR_setresuid || defined __NR_setresuid32 result = setresuid(-1, uid, -1); if (result == -1 && errno == ENOSYS) /* Will also set the saved user ID if euid != uid, |