|Anonymous | Login||2021-03-09 01:49 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001399||[Issue 8 drafts] System Interfaces||Editorial||Error||2020-09-17 06:04||2020-09-17 08:31|
|Status||Closed||Product Version||Draft 1|
|Final Accepted Text|
|Summary||0001399: Typo in variable name (nogroups ==> ngroups)|
In the EXAMPLES section of getgroups(), there is the following:
ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
group = (gid_t *)malloc(ngroups_max *sizeof(gid_t));
ngroups = getgroups(ngroups_max, group);
A variable called "nogroups" is declared, but later the variable used in line 35221 is called "ngroups". To fix this (in away that employs variable names that are also consistent with line 35218), "nogroups" should be changed to "ngroups".
Note that the same issue is present in Issue 7, 2018 Edition.
|Desired Action||In line 35217, change "nogroups" to "ngroups".|
|Tags||No tags attached.|
Don Cragun (manager)
edited on: 2020-09-17 06:29
0001399 and 0001400 identify the same problem in two versions of the standard.
I believe that one of these bugs should be accepted with tags tc3-2008 and issue8 and the other one should be closed as a duplicate.
Re: Note: 0004994 Alternatively, Michael could ask to withdraw this bug, which we could then do straight away, and would save us having to process both bugs in a teleconference.
Just to be clear, the reason only one bug is needed here is not so much because it's the same problem but because the change needed to fix it is the same. In a case where the same problem would need different changes in TC3 and Issue 8, two bugs would be needed (unless the difference is simple enough to be covered in a "Note to the editor" in the editing instructions).
Please withdraw this bug.
I was unsure of what the right process would be, since, although the fixes are the same, the line numbering is different. My apologies for creating the extra clutter.
|2020-09-17 06:04||mkerrisk||New Issue|
|2020-09-17 06:04||mkerrisk||Name||=> Michael Kerrisk|
|2020-09-17 06:04||mkerrisk||Organization||=> man7.org|
|2020-09-17 06:04||mkerrisk||Section||=> getgroups|
|2020-09-17 06:04||mkerrisk||Page Number||=> 1024|
|2020-09-17 06:04||mkerrisk||Line Number||=> 35217|
|2020-09-17 06:28||Don Cragun||Note Added: 0004994|
|2020-09-17 06:29||Don Cragun||Relationship added||related to 0001400|
|2020-09-17 06:29||Don Cragun||Note Edited: 0004994|
|2020-09-17 08:01||geoffclare||Note Added: 0004995|
|2020-09-17 08:09||mkerrisk||Note Added: 0004996|
|2020-09-17 08:31||geoffclare||Status||New => Closed|
|2020-09-17 08:31||geoffclare||Resolution||Open => Withdrawn|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|