* dcrt0.cc (dll_crt0_0): Call set_cygwin_privileges here, after
initializing hProcToken. * sec_helper.cc (init_global_security): Don't call set_cygwin_privileges here.
This commit is contained in:
parent
391b530a05
commit
5fbf573cd3
@ -1,3 +1,9 @@
|
||||
2007-07-19 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* dcrt0.cc (dll_crt0_0): Call set_cygwin_privileges here, after
|
||||
initializing hProcToken.
|
||||
* sec_helper.cc (init_global_security): Don't call set_cygwin_privileges here.
|
||||
|
||||
2007-07-18 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* cygheap.h (shared_prefix): De-const.
|
||||
|
@ -734,7 +734,9 @@ dll_crt0_0 ()
|
||||
|
||||
DuplicateHandle (hMainProc, GetCurrentThread (), hMainProc,
|
||||
&hMainThread, 0, false, DUPLICATE_SAME_ACCESS);
|
||||
|
||||
OpenProcessToken (hMainProc, MAXIMUM_ALLOWED, &hProcToken);
|
||||
set_cygwin_privileges (hProcToken);
|
||||
|
||||
device::init ();
|
||||
do_global_ctors (&__CTOR_LIST__, 1);
|
||||
|
@ -530,8 +530,6 @@ init_global_security ()
|
||||
sec_none.lpSecurityDescriptor = sec_none_nih.lpSecurityDescriptor = NULL;
|
||||
sec_all.lpSecurityDescriptor = sec_all_nih.lpSecurityDescriptor =
|
||||
get_null_sd ();
|
||||
|
||||
set_cygwin_privileges (hProcToken);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user