Remove an errant grset++ in the AIX version of sudo_getgrouplist2().
Bug #857
This commit is contained in:
@@ -142,7 +142,6 @@ sudo_getgrouplist2_v1(const char *name, GETGROUPS_T basegid,
|
|||||||
/* Dynamically-sized group vector, count groups and alloc. */
|
/* Dynamically-sized group vector, count groups and alloc. */
|
||||||
grpsize = 1; /* reserve one for basegid */
|
grpsize = 1; /* reserve one for basegid */
|
||||||
if (*grset != '\0') {
|
if (*grset != '\0') {
|
||||||
grset++;
|
|
||||||
for (cp = grset; *cp != '\0'; cp++) {
|
for (cp = grset; *cp != '\0'; cp++) {
|
||||||
if (*cp == ',')
|
if (*cp == ',')
|
||||||
grpsize++;
|
grpsize++;
|
||||||
|
Reference in New Issue
Block a user