summaryrefslogtreecommitdiff
path: root/src/passwd/getpwent_a.c
AgeCommit message (Collapse)AuthorLines
2015-02-23fix spurious errors in refactored passwd/group codeRich Felker-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-10refactor passwd file access codeJosiah Worcester-2/+6
this allows getpwnam and getpwuid 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 Felker-4/+11
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 Felker-2/+8
these changes are a prerequisite to making stdio cancellable.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+37