diff options
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 21aa0fb8d..ce1ebe52f 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -109,6 +109,11 @@ pinfo_init (char **envp, int envc) environ_init (NULL, 0); /* call after myself has been set up */ } + /* Allow backup semantics. It's better done only once on process start + instead of each time a file is opened. */ + if (allow_ntsec) + set_process_privileges (); + debug_printf ("pid %d, pgid %d", myself->pid, myself->pgid); } |