From 7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 14 Jun 2007 14:12:53 +0000 Subject: r23496: Fix logic error in getgrnam_recv() that broke getgrnam() for machine and domain local groups. (This used to be commit 4d4c1eca30ce57b4072e9f8c59fcc49bf3a5c48e) --- source3/nsswitch/winbindd_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index 4ee9ab55de..df2a75c244 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/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; -- cgit