aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-02-21 09:20:28 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-05-09 00:06:43 +0200
commite10b664cd6d4251bad5c2c145ede78d0e5effbac (patch)
tree4d333bd44f677fce0e945fdf8bfe24ecdd7c4c49
parentelf: Add missing dependency between resolvfail and testobj1.so (diff)
downloadglibc-e10b664cd6d4251bad5c2c145ede78d0e5effbac.tar.gz
glibc-e10b664cd6d4251bad5c2c145ede78d0e5effbac.tar.bz2
glibc-e10b664cd6d4251bad5c2c145ede78d0e5effbac.zip
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 969e9733c7d17edf1e239a73fa172f357561f440) (cherry picked from commit 6d42a86ad3861d6ec67058eb32f5150e7b734951)
-rw-r--r--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 45bd32e60c..d535ef9d58 100644
--- a/NEWS
+++ b/NEWS
@@ -55,6 +55,7 @@ The following bugs are resolved with this release:
[29776] elf/tst-tlsopt-powerpc fails when compiled with -mcpu=power10
[29951] time: Set daylight to 1 for matching DST/offset change
[30053] time: strftime %s returns -1 after 2038 on 32 bits systems
+ [30151] gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling
Version 2.36