summaryrefslogtreecommitdiff
path: root/src/passwd/getgr_r.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-29fix off-by-one error in getgrnam_r and getgrgid_r, clobbering gr_nameRich Felker1-2/+2
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.
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-06-08it's called getgrgid_r, not getgruid_r...Rich Felker1-1/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+53