about summary refs log tree commit diff
path: root/NEWS
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-02-21 09:20:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-04-24 14:35:54 +0200
commit6d42a86ad3861d6ec67058eb32f5150e7b734951 (patch)
tree95745a4cb1b4505850f5c19ed03259b1b5a864a1 /NEWS
parentf3991fec8071dbcf3ec9f13a91c738b66fcd4159 (diff)
downloadglibc-6d42a86ad3861d6ec67058eb32f5150e7b734951.tar.gz
glibc-6d42a86ad3861d6ec67058eb32f5150e7b734951.tar.xz
glibc-6d42a86ad3861d6ec67058eb32f5150e7b734951.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)
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index aff6951c1d..bbe611c500 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