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/sec_helper.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/sec_helper.cc')
-rw-r--r-- | winsup/cygwin/sec_helper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sec_helper.cc b/winsup/cygwin/sec_helper.cc index 70817c5c5..db54bc079 100644 --- a/winsup/cygwin/sec_helper.cc +++ b/winsup/cygwin/sec_helper.cc @@ -386,7 +386,7 @@ sec_acl (PACL acl, bool original, bool admins, PSID sid1, PSID sid2, DWORD acces if (!AddAccessAllowedAce (acl, ACL_REVISION, GENERIC_ALL, sid1)) debug_printf ("AddAccessAllowedAce(sid1) %E"); - if (original && (psid = cygheap->user.orig_sid ()) + if (original && (psid = cygheap->user.saved_sid ()) && psid != sid1 && psid != well_known_system_sid) if (!AddAccessAllowedAce (acl, ACL_REVISION, GENERIC_ALL, psid)) |