diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-08-30 18:11:28 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-08-30 18:11:28 -0700 |
commit | 1599e2b9f44158c47d266e0af2da7125fc9e8bff (patch) | |
tree | 87e38b3b332e62d65dad16d21eb2c335b553447b /utils | |
parent | 033a0fa1c6cabd0841bbbd0c762f4b4dd4a5753f (diff) | |
parent | 9831975c767bce45769ad42d916991d2f4caa1dd (diff) | |
download | gps-1599e2b9f44158c47d266e0af2da7125fc9e8bff.tar.gz |
Merge "Fix issue with use of incorrect index in group list"
Diffstat (limited to 'utils')
-rw-r--r-- | utils/loc_cfg.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp index 4c3bc58..d319fb4 100644 --- a/utils/loc_cfg.cpp +++ b/utils/loc_cfg.cpp @@ -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++) { struct group* grp = getgrnam(split_strings[i]); 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++; - LOC_LOGD("%s:%d]:Group %s = %d matches child_group: %d\n", - __func__, __LINE__, split_strings[i], - grp->gr_gid,child_proc[j].group_list[i]); + LOC_LOGd("Group %s = %d", split_strings[i], grp->gr_gid); } } |