Anonymous | Login | 2024-05-11 12:16 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
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 | ||
Reporter | mkerrisk | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Withdrawn | ||||
Status | Closed | Product Version | Draft 1 | ||||
Name | Michael Kerrisk | ||||||
Organization | man7.org | ||||||
User Reference | |||||||
Section | getgroups | ||||||
Page Number | 1024 | ||||||
Line Number | 35217 | ||||||
Final Accepted Text | |||||||
Summary | 0001399: Typo in variable name (nogroups ==> ngroups) | ||||||
Description |
In the EXAMPLES section of getgroups(), there is the following: [[ gid_t *group; int nogroups; long ngroups_max; 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. | ||||||
Attached Files | |||||||
|
Relationships | |||||||
|
Notes | |
(0004994) Don Cragun (manager) 2020-09-17 06:28 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. |
(0004995) geoffclare (manager) 2020-09-17 08:01 |
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). |
(0004996) mkerrisk (reporter) 2020-09-17 08:09 |
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. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |