* uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended

user info if we're creating a passwd entry.  Add comment.
This commit is contained in:
Corinna Vinschen 2014-02-28 19:10:40 +00:00
parent 6cc7c925ce
commit f024a32928
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-02-28 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended
user info if we're creating a passwd entry. Add comment.
2014-02-28 Corinna Vinschen <corinna@vinschen.de>
* cygheap.h (cygheap_user::sid): Return reference to cygpsid rather

View File

@ -1501,7 +1501,9 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, bool group,
if (is_domain_account)
{
if (acc_type != SidTypeUser)
/* We only care for the extended user information if we're
creating a passwd entry and the account is, in fact, a user. */
if (group || acc_type != SidTypeUser)
break;
/* Default primary group. If the sid is the current user, fetch