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/shared.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'winsup/cygwin/shared.cc') diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 65adc3e27..86c66a44a 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -161,15 +161,7 @@ user_shared_initialize (bool reinit) } if (!cygwin_user_h) - { - if (wincap.has_security ()) - { - cygpsid tu (cygheap->user.sid ()); - tu.string (name); - } - else - strcpy (name, cygheap->user.name ()); - } + cygheap->user.get_windows_id (name); user_shared = (user_info *) open_shared (name, USER_VERSION, cygwin_user_h, sizeof (user_info), -- cgit v1.2.3