glibc/gshadow
Florian Weimer 6a0d56b009 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 15:59:58 +02:00
..
fgetsgent_r.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fgetsgent.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getsgent_r.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getsgent.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getsgnam_r.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getsgnam.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gshadow.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151) 2023-04-24 15:59:58 +02:00
putsgent.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sgetsgent_r.c gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151) 2023-04-24 15:59:58 +02:00
sgetsgent.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-fgetsgent_r.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-gshadow.c * shadow/Makefile (tests): Add tst-shadow. 2009-04-23 18:58:19 +00:00
tst-putsgent.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-sgetsgent.c gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151) 2023-04-24 15:59:58 +02:00
Versions * version.h (VERSION): Bump to 2.10.1. 2009-05-10 18:38:52 +00:00