summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-01-31 09:27:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:28 -0500
commit3924332071abde0c173a8e6e443a7d57fdee4548 (patch)
tree80aac381c8d562dba4d85f8b609a6067d6e1e377 /source3/lib
parentc23c9bfd67fb3ebf6aeef243af8a93b1be867369 (diff)
downloadsamba-3924332071abde0c173a8e6e443a7d57fdee4548.tar.gz
samba-3924332071abde0c173a8e6e443a7d57fdee4548.tar.bz2
samba-3924332071abde0c173a8e6e443a7d57fdee4548.zip
r5127: Fix Bug 2289 -- thanks to jason@ncac.gwu.edu
(This used to be commit 8c35c3bf2ed65d2b93feb0f419e1c7785fba7764)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/system_smbd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/system_smbd.c b/source3/lib/system_smbd.c
index eed607ee8f..c83eecf173 100644
--- a/source3/lib/system_smbd.c
+++ b/source3/lib/system_smbd.c
@@ -111,13 +111,12 @@ static int getgrouplist_internals(const char *user, gid_t gid, gid_t *groups, in
static int sys_getgrouplist(const char *user, gid_t gid, gid_t *groups, int *grpcnt)
{
- char *p;
int retval;
DEBUG(10,("sys_getgrouplist: user [%s]\n", user));
/* see if we should disable winbindd lookups for local users */
- if ( (p = strchr(user, *lp_winbind_separator())) == NULL ) {
+ if (strchr(user, *lp_winbind_separator()) == NULL) {
if ( !winbind_off() )
DEBUG(0,("sys_getgroup_list: Insufficient environment space for %s\n",
WINBINDD_DONT_ENV));