]> granicus.if.org Git - sudo/commitdiff
Remove an errant grset++ in the AIX version of sudo_getgrouplist2().
authorTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 25 Oct 2018 13:17:31 +0000 (07:17 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 25 Oct 2018 13:17:31 +0000 (07:17 -0600)
Bug #857

lib/util/getgrouplist.c

index e14086abcca5dceadc6af60474c8c72fecba3d24..ecc82e5062ab74bfec569e044df9e39c3c100bcd 100644 (file)
@@ -142,7 +142,6 @@ sudo_getgrouplist2_v1(const char *name, GETGROUPS_T basegid,
        /* Dynamically-sized group vector, count groups and alloc. */
        grpsize = 1;    /* reserve one for basegid */
        if (*grset != '\0') {
-           grset++;
            for (cp = grset; *cp != '\0'; cp++) {
                if (*cp == ',')
                    grpsize++;