about summary refs log tree commit diff
path: root/src/passwd/getgrent_a.c
Commit message (Collapse)AuthorAgeFilesLines
* fix mishandling of ENOMEM return case in internal getgrent_a functionRich Felker2015-05-011-1/+2
| | | | | | | | due to an incorrect return statement in this error case, the previously blocked cancellation state was not restored and no result was stored. this could lead to invalid (read) accesses in the caller resulting in crashes or nonsensical result data in the event of memory exhaustion.
* fix spurious errors in refactored passwd/group codeRich Felker2015-02-231-1/+1
| | | | | | | | | errno was treated as the error status when the return value of getline was negative, but this condition can simply indicate EOF and is not necessarily an error. the spurious errors caused by this bug masked the bug which was fixed in commit fc5a96c9c8aa186effad7520d5df6b616bbfd29d.
* refactor group file access codeJosiah Worcester2015-02-131-2/+7
| | | | | this allows getgrnam and getgrgid to share code with the _r versions in preparation for alternate backend support.
* change uid_t, gid_t, and id_t to unsigned typesRich Felker2013-07-191-2/+9
| | | | | | | | | this change is both to fix one of the remaining type (and thus C++ ABI) mismatches with glibc/LSB and to allow use of the full range of uid and gid values, if so desired. passwd/group access functions were not prepared to deal with unsigned values, so they too have been fixed with this commit.
* make passwd/group functions safe against cancellation in stdioRich Felker2012-02-011-2/+7
| | | | these changes are a prerequisite to making stdio cancellable.
* fix buffer overrun in getgrent code when there are no group membersRich Felker2011-06-301-4/+8
|
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+46