diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-03-18 17:15:27 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-03-18 17:15:27 +0100 |
commit | 4a9636b1d6d3380eaff53621498445f6adcfc18e (patch) | |
tree | 1fa05c56734c5f4e600e7e71362dcd0bac39b522 /winsup/cygwin/grp.cc | |
parent | 1d91d469ee534fab47fdb710a037378c103fee23 (diff) | |
download | newlib-4a9636b1d6d3380eaff53621498445f6adcfc18e.zip newlib-4a9636b1d6d3380eaff53621498445f6adcfc18e.tar.gz newlib-4a9636b1d6d3380eaff53621498445f6adcfc18e.tar.bz2 |
Implmenet faster getfrompw/getfromgr
* grp.cc (pwdgrp::parse_group): Call cygsid::getfromgr_passwd.
* passwd.cc (pwdgrp::parse_passwd): Call cygsid::getfrompw_gecos.
* pwdgrp.h (cygsid::getfrompw): Implement as inline method here,
accessing pg_pwd's sid member directly.
(cygsid::getfromgr): Implement as inline method here, accessing
pg_grp's sid member directly.
* sec_auth.cc (extract_nt_dom_user): Call cygsid::getfrompw_gecos.
Explain why.
* sec_helper.cc (cygsid::getfrompw): Drop implementation.
(cygsid::getfromgr): Ditto.
* security.h (cygsid::getfrompw_gecos): Implement former getfrompw
inline here.
(cygsid::getfromgr_passwd): Implement former getfromgr inline here.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r-- | winsup/cygwin/grp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index 5355116..ea20e92 100644 --- a/winsup/cygwin/grp.cc +++ b/winsup/cygwin/grp.cc @@ -47,7 +47,7 @@ pwdgrp::parse_group () return false; /* Don't generate gr_mem entries. */ grp.g.gr_mem = &null_ptr; - grp.sid.getfromgr (&grp.g); + grp.sid.getfromgr_passwd (&grp.g); return true; } |