1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

fix a netgroup bug (innetgr() was being called with the args in the

wrong order!)
(This used to be commit 4419093d33)
This commit is contained in:
Andrew Tridgell 1996-05-04 10:45:50 +00:00
parent 089c5b2165
commit 03aeb8af5d

View File

@ -1153,13 +1153,12 @@ static BOOL check_user_equiv(char *user, char *remote, char *equiv_file)
BOOL host_ok = False;
#ifdef NETGROUP
/* THIS IS UNTESTED!! */
if (is_group)
{
static char *mydomain = NULL;
if (!mydomain)
yp_get_default_domain(&mydomain);
if (mydomain && innetgr(remote,file_host,user,mydomain))
if (mydomain && innetgr(file_host,remote,user,mydomain))
host_ok = True;
}
#else