View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001400 | 1003.1(2016/18)/Issue7+TC2 | System Interfaces | public | 2020-09-17 06:10 | 2024-06-11 09:08 |
Reporter | mkerrisk | Assigned To | |||
Priority | normal | Severity | Editorial | Type | Error |
Status | Closed | Resolution | Accepted | ||
Name | Michael Kerrisk | ||||
Organization | man7.org | ||||
User Reference | |||||
Section | getgroups() | ||||
Page Number | 1042 | ||||
Line Number | 35515 | ||||
Interp Status | --- | ||||
Final Accepted Text | |||||
Summary | 0001400: 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 35519 is called "ngroups". To fix this (in a way that employs variable names that are also consistent with line 35516), "nogroups" should be changed to "ngroups". Note that the same issue is present in Issue 8, draft 1, and reported as https://austingroupbugs.net/view.php?id=1399 | ||||
Desired Action | In line 35515, change "nogroups" to "ngroups". | ||||
Tags | tc3-2008 |
related to | 0001399 | Closed | Issue 8 drafts | Typo in variable name (nogroups ==> ngroups) |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-09-17 06:10 | mkerrisk | New Issue | |
2020-09-17 06:10 | mkerrisk | Name | => Michael Kerrisk |
2020-09-17 06:10 | mkerrisk | Organization | => man7.org |
2020-09-17 06:10 | mkerrisk | Section | => getgroups() |
2020-09-17 06:10 | mkerrisk | Page Number | => 1042 |
2020-09-17 06:10 | mkerrisk | Line Number | => 35515 |
2020-09-17 06:29 | Don Cragun | Relationship added | related to 0001399 |
2021-02-08 16:14 | Don Cragun | Interp Status | => --- |
2021-02-08 16:14 | Don Cragun | Status | New => Resolved |
2021-02-08 16:14 | Don Cragun | Resolution | Open => Accepted |
2021-02-08 16:14 | Don Cragun | Tag Attached: tc3-2008 | |
2021-02-23 15:35 | geoffclare | Status | Resolved => Applied |
2024-06-11 09:08 | agadmin | Status | Applied => Closed |