Cygwin: passwd/group: rename get_group_name to get_account_name
The function is the same for user and grou accounts. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
507982af79
commit
09bbcf8788
|
@ -60,8 +60,7 @@ public:
|
|||
/* User only */
|
||||
gid_t get_primary_gid () { return get_num_attribute (L"primaryGroupID"); }
|
||||
gid_t get_unix_uid () { return get_num_attribute (L"uidNumber"); }
|
||||
/* group only */
|
||||
PWCHAR get_group_name ()
|
||||
PWCHAR get_account_name ()
|
||||
{ return get_string_attribute (L"sAMAccountName"); }
|
||||
gid_t get_unix_gid () { return get_num_attribute (L"gidNumber"); }
|
||||
};
|
||||
|
|
|
@ -1980,7 +1980,7 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
|
|||
PWCHAR val;
|
||||
|
||||
if (cldap->fetch_ad_account (sid, true)
|
||||
&& (val = cldap->get_group_name ()))
|
||||
&& (val = cldap->get_account_name ()))
|
||||
{
|
||||
wcpcpy (name, val);
|
||||
wcpcpy (dom, L"BUILTIN");
|
||||
|
|
Loading…
Reference in New Issue