diff options
Diffstat (limited to 'sysdeps/generic/enbl-secure.c')
-rw-r--r-- | sysdeps/generic/enbl-secure.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/generic/enbl-secure.c b/sysdeps/generic/enbl-secure.c index fdf6f154f6..8e1327c878 100644 --- a/sysdeps/generic/enbl-secure.c +++ b/sysdeps/generic/enbl-secure.c @@ -26,9 +26,13 @@ /* 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 ()); } |