summaryrefslogtreecommitdiff
path: root/src/passwd/getpw_r.c
AgeCommit message (Collapse)AuthorFilesLines
2017-06-15set errno when getpw*_r, getgr*_r, and getspnam_r failRich Felker1-0/+1
these functions return an error code, and are not explicitly documented to set errno, but they are nonstandard and the historical implementations do set errno as well, and some applications expect this behavior. do likewise for compatibility. patch by Rudolph Pereira.
2015-02-23fix crashes in refactored passwd/group codeRich Felker1-2/+2
the wrong condition was used in determining the presence of a result that needs space/copying for the _r functions. a zero return value does not necessarily mean success; it can also be a non-error negative result: no such user/group.
2015-02-10refactor passwd file access codeJosiah Worcester1-25/+11
this allows getpwnam and getpwuid to share code with the _r versions in preparation for alternate backend support.
2012-09-29more close-on-exec fixes, mostly using new "e" flag to fopenRich Felker1-1/+1
2012-02-01make passwd/group functions safe against cancellation in stdioRich Felker1-1/+10
these changes are a prerequisite to making stdio cancellable.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+46