diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-05-29 20:43:40 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-05-29 20:43:40 +0000 |
commit | b2939a814cc551c7619798e41c18bc60ce6543d5 (patch) | |
tree | 35d7cc80a6a694d4bbcd5b2674777bd0f590359b /winsup/cygwin/security.h | |
parent | 98ae4ae7d5650711241fefaaccf0063e0a142b21 (diff) | |
download | cygnal-b2939a814cc551c7619798e41c18bc60ce6543d5.tar.gz cygnal-b2939a814cc551c7619798e41c18bc60ce6543d5.tar.bz2 cygnal-b2939a814cc551c7619798e41c18bc60ce6543d5.zip |
* sec_helper.cc (cygsid::getfrompw): Change parameter to `const'.
(cygsid::getfromgr): Ditto.
* security.cc: Use `sys_mbstowcs' and `sys_wcstombs' throughout.
(extract_nt_dom_user): Try to get user and domain from SID in
pw->pw_gecos first.
* security.h (class cygsid): Change parameter of getfrompw() and
getfromgr() to `const'.
* uinfo.cc (internal_getlogin): Change order for evaluating user
information in winNT case. Drop usage of NetWkstaUserGetInfo().
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index c915c1b6c..ef39fabd6 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -45,8 +45,8 @@ public: inline PSID set () { return psid = (PSID) sbuf; } - BOOL getfrompw (struct passwd *pw); - BOOL getfromgr (struct group *gr); + BOOL getfrompw (const struct passwd *pw); + BOOL getfromgr (const struct group *gr); int get_id (BOOL search_grp, int *type = NULL); inline int get_uid () { return get_id (FALSE); } |