fix crashes in refactored passwd/group code
authorRich Felker <dalias@aerifal.cx>
Mon, 23 Feb 2015 05:35:47 +0000 (00:35 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 23 Feb 2015 05:35:47 +0000 (00:35 -0500)
commitfc5a96c9c8aa186effad7520d5df6b616bbfd29d
treeeeeba8f6c0cfdeafaa5955e29104850a9d7c8c68
parentd9da1fb8c592469431c764732d09f7756340190e
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.
src/passwd/getgr_r.c
src/passwd/getpw_r.c