From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA04B3858C83; Tue, 21 Feb 2023 08:13:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA04B3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676967189; bh=xQFZdZgJiq7RNmylpfsxxJEVw4UkDgbfopPu5fcQoSg=; h=From:To:Subject:Date:From; b=uxR+iBTN+vBLFYi0Jl2ESC8puqAFfPtSkiucJLpg1US/AsXE3XVH+v9dTz8Zu2xRr nLJak4BrMHl6PlmDfG8C1dB0/o/wP1YxtanhMeuQZRCy202t9sLTaMqq17T9YUs+Dk e+SV6ZvCc0cbfZp6agTJT/GULkZIJwoJ7PRG+INY= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug nss/30151] New: sgetsgent_r does not implement ERANGE protocol compatible with sgetsgent Date: Tue, 21 Feb 2023 08:13:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nss X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30151 Bug ID: 30151 Summary: sgetsgent_r does not implement ERANGE protocol compatible with sgetsgent Product: glibc Version: 2.38 Status: NEW Severity: normal Priority: P2 Component: nss Assignee: unassigned at sourceware dot org Reporter: fweimer at redhat dot com Target Milestone: --- 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. This bug is somewhat similar in effect as bug 20338, but the root cause is quite different. --=20 You are receiving this mail because: You are on the CC list for the bug.=