summaryrefslogtreecommitdiff
path: root/src/passwd/getgrent_a.c
AgeCommit message (Collapse)AuthorFilesLines
2015-05-01fix mishandling of ENOMEM return case in internal getgrent_a functionRich Felker1-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.
2015-02-23fix spurious errors in refactored passwd/group codeRich Felker1-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.
2015-02-13refactor group file access codeJosiah Worcester1-2/+7
this allows getgrnam and getgrgid to share code with the _r versions in preparation for alternate backend support.
2013-07-19change uid_t, gid_t, and id_t to unsigned typesRich Felker1-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.
2012-02-01make passwd/group functions safe against cancellation in stdioRich Felker1-2/+7
these changes are a prerequisite to making stdio cancellable.
2011-06-30fix buffer overrun in getgrent code when there are no group membersRich Felker1-4/+8
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+46