]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/generic/enbl-secure.c
Update.
[thirdparty/glibc.git] / sysdeps / generic / enbl-secure.c
index 3f3fe23c542b31c0b33b3fddfa974c55e930d228..7dcd4391fab6a0f1e80f86968569df4cd34aa667 100644 (file)
@@ -1,5 +1,5 @@
 /* Define and initialize the `__libc_enable_secure' flag.  Generic version.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 /* Safest assumption, if somehow the initializer isn't run.  */
 int __libc_enable_secure = 1;
 
-/* We often need the UID.  */
-extern uid_t __libc_uid;
-
 void
 __libc_init_secure (void)
 {
-  __libc_uid = __getuid ();
-  __libc_enable_secure = (__geteuid () != __libc_uid
+  __libc_enable_secure = (__geteuid () != __getuid ()
                          || __getegid () != __getgid ());
 }