glibc/gshadow
Florian Weimer 6d42a86ad3 gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151)
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 969e9733c7)
2023-04-24 14:35:54 +02:00
..
fgetsgent_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
fgetsgent.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getsgent_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getsgent.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getsgnam_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getsgnam.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
gshadow.h Add access function attributes to grp and shadow headers 2022-03-14 20:02:30 +05:30
Makefile gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151) 2023-04-24 14:35:54 +02:00
putsgent.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sgetsgent_r.c gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151) 2023-04-24 14:35:54 +02:00
sgetsgent.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-fgetsgent_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-gshadow.c
tst-putsgent.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-sgetsgent.c gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151) 2023-04-24 14:35:54 +02:00
Versions * version.h (VERSION): Bump to 2.10.1. 2009-05-10 18:38:52 +00:00