Declare and define __libc_uid.
authordrepper <drepper>
Wed, 3 Dec 1997 23:32:23 +0000 (23:32 +0000)
committerdrepper <drepper>
Wed, 3 Dec 1997 23:32:23 +0000 (23:32 +0000)
sysdeps/mach/hurd/dl-sysdep.c

index 88918c5..befd112 100644 (file)
@@ -44,6 +44,7 @@ extern int _dl_argc;
 extern char **_dl_argv;
 extern char **_environ;
 
+uid_t __libc_uid;
 int __libc_enable_secure;
 
 struct hurd_startup_data *_dl_hurd_data;
@@ -106,6 +107,7 @@ _dl_sysdep_start (void **start_argptr,
       else
        _dl_hurd_data = (void *) p;
 
+      __libc_uid = __getuid ();
       __libc_enable_secure = _dl_hurd_data->flags & EXEC_SECURE;
 
       if (_dl_hurd_data->flags & EXEC_STACK_ARGS &&