From e70bea195b50a129b90a2706d9d7225bc8b68107 Mon Sep 17 00:00:00 2001 From: Pierre Humblet Date: Sat, 20 Nov 2004 19:09:19 +0000 Subject: 2004-11-20 Pierre Humblet * cygheap.h (cygheap_user::get_windows_id): New method. * registry.h (get_registry_hive_path): Change argument type. (load_registry_hive): Ditto. * registry.cc (get_registry_hive_path): Change argument type and take Win9x keys into account. (load_registry_hive): Ditto. * uinfo.cc (cygheap_user::env_userprofile): Use get_windows_id, even for SYSTEM. * shared.cc (user_shared_initialize): Use get_windows_id. * syscalls.cc (seteuid32): Load the registry hive and reload the user shared also on Win9x. --- winsup/cygwin/cygheap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'winsup/cygwin/cygheap.h') diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 2feff8518..9e86519dd 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -206,6 +206,14 @@ public: internal_token = NO_IMPERSONATION; } } + char * get_windows_id (char * buf) + { + if (wincap.is_winnt ()) + return effec_cygsid.string (buf); + else + return strcpy (buf, name ()); + } + const char *cygheap_user::test_uid (char *&, const char *, size_t) __attribute__ ((regparm (3))); }; -- cgit v1.2.3