fix a netgroup bug (innetgr() was being called with the args in the
authorAndrew Tridgell <tridge@samba.org>
Sat, 4 May 1996 10:45:50 +0000 (10:45 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 4 May 1996 10:45:50 +0000 (10:45 +0000)
wrong order!)
(This used to be commit 4419093d336bad30b194b959231fed04cbc8a1cf)

source3/smbd/password.c

index 87c1fef94c5b243a0dc552588e1374b2e8533ca9..863032df8728afbad40a14a7daa6e157e034b46b 100644 (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