Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-09-16 13:24:52 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-09-16 13:24:52 +0400
commit1498189ca897347251470f3dd35e97d2f20f0f4b (patch)
tree3ac8b2cab6b9f97257bceb614d92242b30909858 /winsup/cygwin/cygheap.h
parentc429c346d826abfc951fa1c5d520e10dd56549c4 (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/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index b3ac71e5d..1d05446f9 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -107,10 +107,10 @@ class cygheap_user
char *pwinname; /* User's name as far as Windows knows it */
char *puserprof; /* User profile */
PSID psid; /* buffer for user's SID */
- PSID orig_psid; /* Remains intact even after impersonation */
+ PSID saved_psid; /* Remains intact even after impersonation */
public:
- __uid32_t orig_uid; /* Remains intact even after impersonation */
- __gid32_t orig_gid; /* Ditto */
+ __uid32_t saved_uid; /* Remains intact even after impersonation */
+ __gid32_t saved_gid; /* Ditto */
__uid32_t real_uid; /* Remains intact on seteuid, replaced by setuid */
__gid32_t real_gid; /* Ditto */
user_groups groups; /* Primary and supp SIDs */
@@ -128,7 +128,7 @@ public:
I've removed the constructor entirely. Please reinstate this f this
situation ever changes.
cygheap_user () : pname (NULL), plogsrv (NULL), pdomain (NULL),
- homedrive (NULL), homepath (NULL), psid (NULL),
+ homedrive (NULL), homepath (NULL),
token (INVALID_HANDLE_VALUE) {}
*/
@@ -161,9 +161,9 @@ public:
return (p == almost_null) ? NULL : p;
}
BOOL set_sid (PSID new_sid);
- BOOL set_orig_sid ();
+ BOOL set_saved_sid ();
PSID sid () const { return psid; }
- PSID orig_sid () const { return orig_psid; }
+ PSID saved_sid () const { return saved_psid; }
const char *ontherange (homebodies what, struct passwd * = NULL);
bool issetuid () const { return current_token != INVALID_HANDLE_VALUE; }
HANDLE token () { return current_token; }