From 4d4c1eca30ce57b4072e9f8c59fcc49bf3a5c48e Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 14 Jun 2007 14:12:53 +0000 Subject: [PATCH] r23496: Fix logic error in getgrnam_recv() that broke getgrnam() for machine and domain local groups. --- source/nsswitch/winbindd_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3