]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r23496: Fix logic error in getgrnam_recv() that broke
authorGerald Carter <jerry@samba.org>
Thu, 14 Jun 2007 14:12:53 +0000 (14:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:21 +0000 (12:23 -0500)
getgrnam() for machine and domain local groups.

source/nsswitch/winbindd_group.c

index 4ee9ab55de007f5e06eb37863d464f37517d4d68..df2a75c244b35d52735d88a13a7e583fd755dc55 100644 (file)
@@ -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;