From: Todd C. Miller Date: Thu, 25 Oct 2018 13:17:31 +0000 (-0600) Subject: Remove an errant grset++ in the AIX version of sudo_getgrouplist2(). X-Git-Tag: SUDO_1_8_26^2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78d35de935e5df74b4dfc190c2e337ab05e8c00e;p=sudo Remove an errant grset++ in the AIX version of sudo_getgrouplist2(). Bug #857 --- diff --git a/lib/util/getgrouplist.c b/lib/util/getgrouplist.c index e14086abc..ecc82e506 100644 --- a/lib/util/getgrouplist.c +++ b/lib/util/getgrouplist.c @@ -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++;