From: Volker Lendecke Date: Mon, 31 Jan 2005 09:27:12 +0000 (+0000) Subject: r5127: Fix Bug 2289 -- thanks to jason@ncac.gwu.edu X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c35c3bf2ed65d2b93feb0f419e1c7785fba7764;p=thirdparty%2Fsamba.git r5127: Fix Bug 2289 -- thanks to jason@ncac.gwu.edu --- diff --git a/source/lib/system_smbd.c b/source/lib/system_smbd.c index eed607ee8fb..c83eecf1733 100644 --- a/source/lib/system_smbd.c +++ b/source/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));