5 Commits

Author SHA1 Message Date
Rich Felker
fc5a96c9c8 fix crashes in refactored passwd/group code
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-23 00:35:47 -05:00
Josiah Worcester
700e08993c refactor passwd file access code
this allows getpwnam and getpwuid to share code with the _r versions
in preparation for alternate backend support.
2015-02-10 22:57:02 -05:00
Rich Felker
d712dd396d more close-on-exec fixes, mostly using new "e" flag to fopen 2012-09-29 18:14:46 -04:00
Rich Felker
4948a24df2 make passwd/group functions safe against cancellation in stdio
these changes are a prerequisite to making stdio cancellable.
2012-02-01 23:51:19 -05:00
Rich Felker
0b44a0315b initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00