diff options
author | Gerald Carter <jerry@samba.org> | 2007-06-14 14:12:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:21 -0500 |
commit | 7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2 (patch) | |
tree | 92a95dc92ae411dc2708dce62c1a23d49e1b4c9d | |
parent | fd3dbb4a48ba5ed9bfaeead94aca6a0070c59c55 (diff) | |
download | samba-7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2.tar.gz samba-7f7ef53720c80e9ded9d7b8a95633cd2c8d568c2.tar.xz 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)
-rw-r--r-- | source3/nsswitch/winbindd_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index 4ee9ab55de0..df2a75c244b 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; |