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/spawn.cc | |
parent | c429c346d826abfc951fa1c5d520e10dd56549c4 (diff) | |
download | cygnal-1498189ca897347251470f3dd35e97d2f20f0f4b.tar.gz cygnal-1498189ca897347251470f3dd35e97d2f20f0f4b.tar.bz2 cygnal-1498189ca897347251470f3dd35e97d2f20f0f4b.zip |
* 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/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 7b05a5c65..b6e126b82 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -625,11 +625,11 @@ spawn_guts (const char * prog_arg, const char *const *argv, /* When ruid != euid we create the new process under the current original account and impersonate in child, this way maintaining the different effective vs. real ids. - FIXME: If ruid != euid and ruid != orig_uid we currently give + FIXME: If ruid != euid and ruid != saved_uid we currently give up on ruid. The new process will have ruid == euid. */ 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 ())) { PSECURITY_ATTRIBUTES sec_attribs = sec_user_nih (sa_buf); |