Explorar o código

As pointed out by Michiel Thuys <michiel.thuys@intersil.com>, this was
checking sizeof which was pure bloat and in many cases wrong.
-Erik

Eric Andersen %!s(int64=23) %!d(string=hai) anos
pai
achega
bb6334f6f0
Modificáronse 1 ficheiros con 1 adicións e 15 borrados
  1. 1 15
      libc/sysdeps/linux/common/seteuid.c

+ 1 - 15
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);
 }