* uinfo.cc (pwdgrp::fetch_account_from_windows): Drop redundant test

for SidTypeUser.
This commit is contained in:
Corinna Vinschen 2015-02-27 14:03:29 +00:00
parent 06371539bd
commit 211cb4df18
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-02-27 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (pwdgrp::fetch_account_from_windows): Drop redundant test
for SidTypeUser.
2015-02-27 Corinna Vinschen <corinna@vinschen.de>
* sec_acl.cc (setacl): Fix bug which leads to ACE duplication in

View File

@ -2053,7 +2053,7 @@ pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
switch (acc_type)
{
case SidTypeUser:
if (is_group () && acc_type == SidTypeUser)
if (is_group ())
{
/* Don't allow users as group. While this is technically
possible, it doesn't make sense in a POSIX scenario.