diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-02-23 20:51:12 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-02-23 20:51:12 +0000 |
commit | bef55bb5c3322c57a0136b63c490e61f230da9be (patch) | |
tree | e940cee1f35cb965ba624deaf5840c34e1933d89 /winsup/cygwin/autoload.cc | |
parent | 9b54770bd71537be20ded7eeb51e672f98839f7b (diff) | |
download | cygnal-bef55bb5c3322c57a0136b63c490e61f230da9be.tar.gz cygnal-bef55bb5c3322c57a0136b63c490e61f230da9be.tar.bz2 cygnal-bef55bb5c3322c57a0136b63c490e61f230da9be.zip |
* autoload.cc (LsaLookupSids): Import.
* cygserver_pwdgrp.h: Include userinfo.h. Drop workaround defining
fetch_user_arg_type_t locally.
* grp.cc (internal_getgrsid_cachedonly): New function.
(internal_getgrfull): Ditto.
(internal_getgroups): Rearrange function. Center around fetching all
cached group info first, calling LsaLookupSids on all so far non-cached
groups second. Pass all available info to new internal_getgrfull call.
* pwdgrp.h: Include userinfo.h. Move definitions of
fetch_user_arg_type_t and fetch_user_arg_t there.
(pwdgrp::add_group_from_windows): Declare with getting full group info.
Called from internal_getgrfull.
* uinfo.cc (pwdgrp::add_group_from_windows): Define.
(pwdgrp::fetch_account_from_line): Add default case.
(pwdgrp::fetch_account_from_file): Ditto.
(pwdgrp::fetch_account_from_windows): Handle FULL_grp_arg.
(client_request_pwdgrp::client_request_pwdgrp): Add default case.
* userinfo.h: New header.
(enum fetch_user_arg_type_t): Add FULL_grp_arg.
(struct fetch_full_grp_t): New datatype.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index ce5d32834..a4812a678 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -545,6 +545,7 @@ LoadDLLfunc (LookupAccountSidW, 28, advapi32) LoadDLLfunc (LsaClose, 4, advapi32) LoadDLLfunc (LsaEnumerateAccountRights, 16, advapi32) LoadDLLfunc (LsaFreeMemory, 4, advapi32) +LoadDLLfunc (LsaLookupSids, 20, advapi32) LoadDLLfunc (LsaOpenPolicy, 16, advapi32) LoadDLLfunc (LsaQueryInformationPolicy, 12, advapi32) LoadDLLfunc (LsaRetrievePrivateData, 12, advapi32) |