Update.
[platform/upstream/glibc.git] / sysdeps / generic / enbl-secure.c
index fdf6f15..8e1327c 100644 (file)
 /* Safest assumption, if somehow the initializer isn't run.  */
 int __libc_enable_secure = 1;
 
+/* We often need the UID.  */
+uid_t __libc_uid;
+
 void
 __libc_init_secure (void)
 {
-  __libc_enable_secure = (__geteuid () != __getuid () ||
-                         __getegid () != __getgid ());
+  __libc_uid == __getuid ();
+  __libc_enable_secure = (__geteuid () != __libc_uid
+                         || __getegid () != __getgid ());
 }