Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-27 23:04:38 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-09-27 23:04:38 +0400
commitf1cdab8563361648a8585f0f43fe070d6b440fc9 (patch)
tree1aef8b05d34d6d9693e1d3e924b4b85f85398915 /winsup/cygwin/cygheap.cc
parente0be0a1d50bc7d10601d44c98d95b2132aca5033 (diff)
* cygheap.cc (cygheap_init): Add GLOBAL_PRIV to hProcToken explicitely
since hProcImpToken isn't initialized here. * shared.cc (open_shared): Always print mapname instead of name in debug output.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 6cbdf6ef7..d7d15667c 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -170,7 +170,7 @@ cygheap_init ()
if (!cygheap->shared_prefix)
cygheap->shared_prefix = cstrdup (
wincap.has_terminal_services ()
- && (set_process_privilege (SE_CREATE_GLOBAL_PRIV, true) >= 0
+ && (set_privilege (hProcToken, SE_CREATE_GLOBAL_PRIV, true) >= 0
|| GetLastError () == ERROR_NO_SUCH_PRIVILEGE)
? "Global\\" : "");
}