last unix group not being listed. spotted by jacques sansdrap.
authorLuke Leighton <lkcl@samba.org>
Fri, 19 Feb 1999 15:46:38 +0000 (15:46 +0000)
committerLuke Leighton <lkcl@samba.org>
Fri, 19 Feb 1999 15:46:38 +0000 (15:46 +0000)
(This used to be commit 2d5fc5c7cf2086c396c853c13a3409bfac77d05c)

source3/groupdb/aliasunix.c
source3/groupdb/builtinunix.c
source3/groupdb/groupunix.c

index 39d7255ac5bec4c0fe3141eab8666a9de54b76e0..e4a86d4fcd7ff35b39f07394f67d8399d5448247 100644 (file)
@@ -221,7 +221,6 @@ static LOCAL_GRP *getalsunixpwent(void *vp, LOCAL_GRP_MEMBER **mem, int *num_mem
                }
 
                fstrcpy(gp_buf.name, gmep.nt_name);
-               grps->grp_idx++;
                break;
        }
 
@@ -247,6 +246,7 @@ static LOCAL_GRP *getalsunixpwent(void *vp, LOCAL_GRP_MEMBER **mem, int *num_mem
                DEBUG(10,("line: '%s'\n", linebuf));
        }
 
+       grps->grp_idx++; /* advance so next enum gets next entry */
        return &gp_buf;
 }
 
index bb45f2983fd916bf6b70d77c594fba95121db138..9f00582592fd054794d35312a6d021e21d7546ca 100644 (file)
@@ -226,7 +226,6 @@ static LOCAL_GRP *getbltunixpwent(void *vp, LOCAL_GRP_MEMBER **mem, int *num_mem
                }
 
                fstrcpy(gp_buf.name, gmep.nt_name);
-               grps->grp_idx++;
                break;
        }
 
@@ -252,6 +251,7 @@ static LOCAL_GRP *getbltunixpwent(void *vp, LOCAL_GRP_MEMBER **mem, int *num_mem
                DEBUG(10,("line: '%s'\n", linebuf));
        }
 
+       grps->grp_idx++; /* advance so next enum gets next entry */
        return &gp_buf;
 }
 
index a8f40a313a1629d1eccc77b31657c8638c89e3c8..1aeae1ca1961e19d9d4569723fee2efe6efc1101 100644 (file)
@@ -227,7 +227,6 @@ static DOMAIN_GRP *getgrpunixpwent(void *vp, DOMAIN_GRP_MEMBER **mem, int *num_m
                }
 
                fstrcpy(gp_buf.name, gmep.nt_name);
-               grps->grp_idx++;
                break;
        }
 
@@ -253,6 +252,7 @@ static DOMAIN_GRP *getgrpunixpwent(void *vp, DOMAIN_GRP_MEMBER **mem, int *num_m
                DEBUG(10,("line: '%s'\n", linebuf));
        }
 
+       grps->grp_idx++; /* advance so next enum gets next entry */
        return &gp_buf;
 }