* 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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user