Bug 2172949 - glibc: sgetsgent_r does not implement ERANGE protocol compatible with sgetsgent [rhel-8.9]
Summary: glibc: sgetsgent_r does not implement ERANGE protocol compatible with sgetsge...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: glibc
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Patsy Griffin
QA Contact: Martin Coufal
URL:
Whiteboard:
Depends On: 2172947
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-23 15:18 UTC by Florian Weimer
Modified: 2023-07-09 12:57 UTC (History)
10 users (show)

Fixed In Version: glibc-2.28-227.el8
Doc Type: No Doc Update
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Clone Of: 2172947
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-149807 0 None None None 2023-02-23 15:19:36 UTC

Description Florian Weimer 2023-02-23 15:18:56 UTC
+++ This bug was initially created as a clone of Bug #2172947 +++

The sgetsgent function checks errno for ERANGE, but sgetsgent_r only returns ERANGE, but does not set errno to ERANGE. As a result, sgetsgent does not detect failure at all, and returns indicating success without filling in the struct sgrp result.

Upstream patch under review:

[PATCH] gshadow: Matching sgetsgent, sgetsgent_r ERANGE handling (bug 30151)
<https://sourceware.org/pipermail/libc-alpha/2023-February/145752.html>


Note You need to log in before you can comment on or make changes to this bug.