Merge "Fix issue with use of incorrect index in group list"
This commit is contained in:
commit
1599e2b9f4
1 changed files with 2 additions and 4 deletions
|
@ -835,11 +835,9 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
|
||||||
for(i=0; i<ngroups; i++) {
|
for(i=0; i<ngroups; i++) {
|
||||||
struct group* grp = getgrnam(split_strings[i]);
|
struct group* grp = getgrnam(split_strings[i]);
|
||||||
if (grp) {
|
if (grp) {
|
||||||
child_proc[j].group_list[i] = grp->gr_gid;
|
child_proc[j].group_list[child_proc[j].num_groups] = grp->gr_gid;
|
||||||
child_proc[j].num_groups++;
|
child_proc[j].num_groups++;
|
||||||
LOC_LOGD("%s:%d]:Group %s = %d matches child_group: %d\n",
|
LOC_LOGd("Group %s = %d", split_strings[i], grp->gr_gid);
|
||||||
__func__, __LINE__, split_strings[i],
|
|
||||||
grp->gr_gid,child_proc[j].group_list[i]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue