Anonymous | Login | 2024-12-12 14:08 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 | ||
0001400 | [1003.1(2016/18)/Issue7+TC2] System Interfaces | Editorial | Error | 2020-09-17 06:10 | 2024-06-11 09:08 | ||
Reporter | mkerrisk | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
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 | ||||||
Attached Files | |||||||
|
Relationships | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |