From: Gerald Carter Date: Thu, 14 Jun 2007 14:12:53 +0000 (+0000) Subject: r23496: Fix logic error in getgrnam_recv() that broke X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d4c1eca30ce57b4072e9f8c59fcc49bf3a5c48e;p=thirdparty%2Fsamba.git r23496: Fix logic error in getgrnam_recv() that broke getgrnam() for machine and domain local groups. --- diff --git a/source/nsswitch/winbindd_group.c b/source/nsswitch/winbindd_group.c index 4ee9ab55de0..df2a75c244b 100644 --- a/source/nsswitch/winbindd_group.c +++ b/source/nsswitch/winbindd_group.c @@ -653,7 +653,7 @@ static void getgrnam_recv( void *private_data, BOOL success, const DOM_SID *sid, return; } - if ( !(type == SID_NAME_DOM_GRP) || (type == SID_NAME_ALIAS) ) { + if ( (type != SID_NAME_DOM_GRP) && (type != SID_NAME_ALIAS) ) { DEBUG(5,("getgrnam_recv: not a group!\n")); request_error(state); return;