diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-09-16 13:24:52 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-09-16 13:24:52 +0400 |
commit | 1498189ca897347251470f3dd35e97d2f20f0f4b (patch) | |
tree | 3ac8b2cab6b9f97257bceb614d92242b30909858 /winsup/cygwin/uinfo.cc | |
parent | c429c346d826abfc951fa1c5d520e10dd56549c4 (diff) |
* cygheap.cc (cygheap_user::set_saved_sid): Rename from set_orig_sid.
* cygheap.h (class cygheap_user): Rename orig_psid, orig_uid and
orig_gid to saved_psid, saved_uid and saved_gid respectively.
Rename methods orig_sid and set_orig_sid to saved_sid and set_saved_sid
respectively.
* sec_helper.cc (sec_acl): Accomodate above changes.
* spawn.cc (spawn_guts): Ditto.
* uinfo.cc (uinfo_init): Ditto.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 342c398ae..ff33221ba 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -128,8 +128,8 @@ uinfo_init () /* Conditions must match those in spawn to allow starting child processes with ruid != euid and rgid != egid. */ else if (cygheap->user.issetuid () - && cygheap->user.orig_uid == cygheap->user.real_uid - && cygheap->user.orig_gid == cygheap->user.real_gid + && cygheap->user.saved_uid == cygheap->user.real_uid + && cygheap->user.saved_gid == cygheap->user.real_gid && !cygheap->user.groups.issetgroups ()) { cygheap->user.reimpersonate (); @@ -138,12 +138,12 @@ uinfo_init () else cygheap->user.close_impersonation_tokens (); - cygheap->user.orig_uid = cygheap->user.real_uid = myself->uid; - cygheap->user.orig_gid = cygheap->user.real_gid = myself->gid; + cygheap->user.saved_uid = cygheap->user.real_uid = myself->uid; + cygheap->user.saved_gid = cygheap->user.real_gid = myself->gid; cygheap->user.external_token = INVALID_HANDLE_VALUE; cygheap->user.internal_token = INVALID_HANDLE_VALUE; cygheap->user.current_token = INVALID_HANDLE_VALUE; - cygheap->user.set_orig_sid (); /* Update the original sid */ + cygheap->user.set_saved_sid (); /* Update the original sid */ } extern "C" char * |