From bb6334f6f024ca7f2d66d282e4cd34180f102a3e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 25 Apr 2001 16:17:39 +0000 Subject: As pointed out by Michiel Thuys , this was checking sizeof which was pure bloat and in many cases wrong. -Erik --- libc/sysdeps/linux/common/seteuid.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'libc') 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); } -- cgit v1.2.3