diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-02-22 23:38:12 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-02-22 23:38:12 +0400 |
commit | b211f4c17e1939f2bd00c07af2d30a8f1fec67df (patch) | |
tree | 3975b6ccdeeb0a623059395d88c26c5d827d38a7 /winsup/cygwin/grp.cc | |
parent | 98cc373860377673c6634edcb529b21e10807618 (diff) |
* external.cc (cygwin_internal): Add cases for CW_GETNSSSEP,
CW_GETPWSID and CW_GETGRSID.
* grp.cc (internal_getgrsid_from_db): New function.
* passwd.cc (internal_getpwsid_from_db): New function.
(pg_ent::setent): Add special case for call from mkpasswd/mkgroup.
* pwdgrp.h (internal_getpwsid_from_db): Declare.
(internal_getgrsid_from_db): Declare.
(enum nss_enum_t): Move to include/sys/cygwin.h.
(class pg_ent): Add comment.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix typo in comment.
Change "UNIX" to "Unix" in domain name.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GETNSSSEP,
CW_GETPWSID and CW_GETGRSID.
(enum nss_enum_t): Define here.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r-- | winsup/cygwin/grp.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index e4aed4d55..2ced0678e 100644 --- a/winsup/cygwin/grp.cc +++ b/winsup/cygwin/grp.cc @@ -139,6 +139,14 @@ internal_getgrsid (cygpsid &sid) return NULL; } +/* This function gets only called from mkgroup via cygwin_internal. */ +struct group * +internal_getgrsid_from_db (cygpsid &sid) +{ + cygheap->pg.nss_init (); + return cygheap->pg.grp_cache.win.add_group_from_windows (sid); +} + struct group * internal_getgrnam (const char *name) { |