summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-25 16:17:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-25 16:17:39 +0000
commitbb6334f6f024ca7f2d66d282e4cd34180f102a3e (patch)
treed42c1109b24522f09fc254bfde9f3427c5950a55 /libc/sysdeps/linux
parent03938380c0e658f55f1df412f2d482f5000f45a6 (diff)
As pointed out by Michiel Thuys <michiel.thuys@intersil.com>, this was
checking sizeof which was pure bloat and in many cases wrong. -Erik
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/seteuid.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/libc/sysdeps/linux/common/seteuid.c b/libc/sysdeps/linux/common/seteuid.c
index a0a63610d..cbb43ce85 100644
--- a/libc/sysdeps/linux/common/seteuid.c
+++ b/libc/sysdeps/linux/common/seteuid.c
@@ -4,19 +4,5 @@
int seteuid(uid_t uid)
{
- switch (sizeof (uid_t))
- {
- case 2:
- if (uid == 65535)
- {
- __set_errno(EINVAL);
- return -1;
- }
- break;
-
- default:
- fprintf (stderr, "Uknown uid_t size and sign\n");
- }
-
- return setreuid(-1, uid);
+ return setreuid(-1, uid);
}