diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-12-01 15:03:43 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-12-01 15:03:43 +0000 |
commit | 6c2b7846124572ffed3ce4fea074cc89e732651c (patch) | |
tree | 864e724e3480a3f4662f895e5874de95d9beed9c /winsup/cygwin/shared.cc | |
parent | 4febe95f89e491c20503330fbad530d53d7ea4fa (diff) | |
download | newlib-6c2b7846124572ffed3ce4fea074cc89e732651c.zip newlib-6c2b7846124572ffed3ce4fea074cc89e732651c.tar.gz newlib-6c2b7846124572ffed3ce4fea074cc89e732651c.tar.bz2 |
* cygheap.cc (cygheap_init): Set cygheap->shared_prefix.
* cygheap.h (struct init_cygheap): Add shared_prefix.
* shared.cc (shared_name): Use cygheap->shared_prefix.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r-- | winsup/cygwin/shared.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index a0d9e96..9a91a1c 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -35,12 +35,8 @@ char * __stdcall shared_name (char *ret_buf, const char *str, int num) { extern bool _cygwin_testing; - static const char *prefix = - wincap.has_terminal_services () - && (set_process_privilege (SE_CREATE_GLOBAL_NAME, true) >= 0 - || GetLastError () == ERROR_NO_SUCH_PRIVILEGE) ? "Global\\" : ""; - __small_sprintf (ret_buf, "%s%s.%s.%d", prefix, + __small_sprintf (ret_buf, "%s%s.%s.%d", cygheap->shared_prefix, cygwin_version.shared_id, str, num); if (_cygwin_testing) strcat (ret_buf, cygwin_version.dll_build_date); |