diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-02-21 09:20:28 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2023-04-11 00:38:43 +0200 |
commit | 4a99d09c68732cfac2c8efb6b963f25f42b43805 (patch) | |
tree | abd3cc24882851a62e95d02e3a3540c9d9f4c995 /time/getitimer.c | |
parent | elf: Restore ldconfig libc6 implicit soname logic [BZ #30125] (diff) | |
download | glibc-4a99d09c68732cfac2c8efb6b963f25f42b43805.tar.gz glibc-4a99d09c68732cfac2c8efb6b963f25f42b43805.tar.bz2 glibc-4a99d09c68732cfac2c8efb6b963f25f42b43805.zip |
gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151)gentoo/glibc-2.37-4
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 'time/getitimer.c')
0 files changed, 0 insertions, 0 deletions