mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 10:50:07 +00:00
97ad4c64b9
Before this change, sgetsgent_r did not set errno to ERANGE, but
sgetsgent only check errno, not the return value from sgetsgent_r.
Consequently, sgetsgent did not detect any error, and reported
success to the caller, without initializing the struct sgrp object
whose address was returned.
This commit changes sgetsgent_r to set errno as well. This avoids
similar issues in applications which only change errno.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit
|
||
---|---|---|
.. | ||
fgetsgent_r.c | ||
fgetsgent.c | ||
getsgent_r.c | ||
getsgent.c | ||
getsgnam_r.c | ||
getsgnam.c | ||
gshadow.h | ||
Makefile | ||
putsgent.c | ||
sgetsgent_r.c | ||
sgetsgent.c | ||
tst-fgetsgent_r.c | ||
tst-gshadow.c | ||
tst-putsgent.c | ||
tst-sgetsgent.c | ||
Versions |