about summary refs log tree commit diff
path: root/support
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-02-21 09:20:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-03-07 10:01:44 +0100
commit969e9733c7d17edf1e239a73fa172f357561f440 (patch)
tree0b7fc604681dafe3fa4f2eec0b60d2a20f833325 /support
parent8390014c2320f94ffd8a8f6088c10c1f64567954 (diff)
downloadglibc-969e9733c7d17edf1e239a73fa172f357561f440.tar.gz
glibc-969e9733c7d17edf1e239a73fa172f357561f440.tar.xz
glibc-969e9733c7d17edf1e239a73fa172f357561f440.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>
Diffstat (limited to 'support')
0 files changed, 0 insertions, 0 deletions