mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
procfs: Fix wrong member IDs are displayed when 'cat /proc/<pid>/group/stasus'.
Jira: PDFW15IS-259 Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
c9fd6bb716
commit
e971083449
@@ -871,7 +871,7 @@ static ssize_t proc_groupstatus(FAR struct proc_file_s *procfile,
|
|||||||
|
|
||||||
for (i = 0; i < group->tg_nmembers; i++)
|
for (i = 0; i < group->tg_nmembers; i++)
|
||||||
{
|
{
|
||||||
linesize = snprintf(procfile->line, STATUS_LINELEN, " %d");
|
linesize = snprintf(procfile->line, STATUS_LINELEN, " %d", group->tg_members[i]);
|
||||||
copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, &offset);
|
copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, &offset);
|
||||||
|
|
||||||
totalsize += copysize;
|
totalsize += copysize;
|
||||||
|
|||||||
Reference in New Issue
Block a user