summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_group.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-06-14 14:12:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:21 -0500
commit7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2 (patch)
tree92a95dc92ae411dc2708dce62c1a23d49e1b4c9d /source3/nsswitch/winbindd_group.c
parentfd3dbb4a48ba5ed9bfaeead94aca6a0070c59c55 (diff)
downloadsamba-7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2.tar.gz
samba-7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2.tar.bz2
samba-7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2.zip
r23496: Fix logic error in getgrnam_recv() that broke
getgrnam() for machine and domain local groups. (This used to be commit 4d4c1eca30ce57b4072e9f8c59fcc49bf3a5c48e)
Diffstat (limited to 'source3/nsswitch/winbindd_group.c')
-rw-r--r--source3/nsswitch/winbindd_group.c2
1 files changed, 1 insertions, 1 deletions
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;