diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-10-18 13:07:13 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-10-18 13:07:13 +0400 |
commit | a6f3658d44c4f5fdd78b20fa07e3ecc7aabe9f23 (patch) | |
tree | 62388f91d2ea4647cb368fedf81490f8f7c45413 /winsup | |
parent | 445d5e815945e1f30e7e2fa90dc703f50c67693a (diff) |
* uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
not in a setuid condition.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/uinfo.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 07bdb3744..4bf59b629 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-10-18 Corinna Vinschen <corinna@vinschen.de> + + * uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if + not in a setuid condition. + 2009-10-13 Eric Blake <ebb9@byu.net> * external.cc (cygwin_internal): Use va_end. diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index a480f9979..51fd8ad76 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -155,7 +155,7 @@ uinfo_init () cygheap->user.curr_token_is_restricted = false; cygheap->user.setuid_to_restricted = false; cygheap->user.set_saved_sid (); /* Update the original sid */ - cygheap->user.reimpersonate (); + cygheap->user.deimpersonate (); } extern "C" int |