diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-02-28 19:10:40 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-02-28 19:10:40 +0000 |
commit | f024a32928391c6ed6b16915aea98a9142f4f58e (patch) | |
tree | edfe0467789efc001057ebb9d6b757cbf760694e /winsup/cygwin/uinfo.cc | |
parent | 6cc7c925ce8614741f09dced8026b6c643554bfd (diff) | |
download | cygnal-f024a32928391c6ed6b16915aea98a9142f4f58e.tar.gz cygnal-f024a32928391c6ed6b16915aea98a9142f4f58e.tar.bz2 cygnal-f024a32928391c6ed6b16915aea98a9142f4f58e.zip |
* 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.cc | 4 |
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 |