Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-02-28 23:10:40 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-02-28 23:10:40 +0400
commitf024a32928391c6ed6b16915aea98a9142f4f58e (patch)
treeedfe0467789efc001057ebb9d6b757cbf760694e /winsup/cygwin/uinfo.cc
parent6cc7c925ce8614741f09dced8026b6c643554bfd (diff)
* uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended
user info if we're creating a passwd entry. Add comment.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r--winsup/cygwin/uinfo.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index dc22082c1..ef8128265 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -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