| Commit message (Expand) | Author | Age | Files | Lines |
| * | set errno when getpw*_r, getgr*_r, and getspnam_r fail•••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.
| Rich Felker | 2017-06-15 | 1 | -0/+1 |
| * | 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.
| Rich Felker | 2015-02-23 | 1 | -2/+2 |
| * | refactor group file access code•••this allows getgrnam and getgrgid to share code with the _r versions
in preparation for alternate backend support.
| Josiah Worcester | 2015-02-13 | 1 | -28/+14 |
| * | fix off-by-one error in getgrnam_r and getgrgid_r, clobbering gr_name•••bug report and patch by Michael Forney. the terminating null pointer
at the end of the gr_mem array was overwriting the beginning of the
string data, causing the gr_name member to always be a zero-length
string.
| Rich Felker | 2013-09-29 | 1 | -2/+2 |
| * | more close-on-exec fixes, mostly using new "e" flag to fopen | Rich Felker | 2012-09-29 | 1 | -1/+1 |
| * | make passwd/group functions safe against cancellation in stdio•••these changes are a prerequisite to making stdio cancellable.
| Rich Felker | 2012-02-01 | 1 | -1/+10 |
| * | it's called getgrgid_r, not getgruid_r... | Rich Felker | 2011-06-08 | 1 | -1/+1 |
| * | initial check-in, version 0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+53 |