diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-09-16 09:24:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-09-16 09:24:52 +0000 |
commit | 1498189ca897347251470f3dd35e97d2f20f0f4b (patch) | |
tree | 3ac8b2cab6b9f97257bceb614d92242b30909858 /winsup/cygwin/cygheap.cc | |
parent | c429c346d826abfc951fa1c5d520e10dd56549c4 (diff) | |
download | newlib-1498189ca897347251470f3dd35e97d2f20f0f4b.zip newlib-1498189ca897347251470f3dd35e97d2f20f0f4b.tar.gz newlib-1498189ca897347251470f3dd35e97d2f20f0f4b.tar.bz2 |
* 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/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index af53795..2174f1d 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -458,13 +458,14 @@ cygheap_user::set_sid (PSID new_sid) } BOOL -cygheap_user::set_orig_sid () +cygheap_user::set_saved_sid () { if (psid) { - if (!orig_psid) orig_psid = cmalloc (HEAP_STR, MAX_SID_LEN); - if (orig_psid) - return CopySid (MAX_SID_LEN, orig_psid, psid); + if (!saved_psid) + saved_psid = cmalloc (HEAP_STR, MAX_SID_LEN); + if (saved_psid) + return CopySid (MAX_SID_LEN, saved_psid, psid); } return FALSE; } |