diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-10-18 09:07:13 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-10-18 09:07:13 +0000 |
commit | a6f3658d44c4f5fdd78b20fa07e3ecc7aabe9f23 (patch) | |
tree | 62388f91d2ea4647cb368fedf81490f8f7c45413 | |
parent | 445d5e815945e1f30e7e2fa90dc703f50c67693a (diff) | |
download | newlib-a6f3658d44c4f5fdd78b20fa07e3ecc7aabe9f23.zip newlib-a6f3658d44c4f5fdd78b20fa07e3ecc7aabe9f23.tar.gz newlib-a6f3658d44c4f5fdd78b20fa07e3ecc7aabe9f23.tar.bz2 |
* uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
not in a setuid condition.
-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 07bdb37..4bf59b6 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 a480f99..51fd8ad 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 |