Bug 674361

Summary: Bug in sgetsgent_r breaking sgetsgent with large gshadow strings
Product: [Fedora] Fedora Reporter: Tomas Mraz <tmraz>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 13CC: fweimer, jakub, pvrabec, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.13.90-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-25 15:32:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 674234    

Description Tomas Mraz 2011-02-01 15:53:44 UTC
Description of problem:
sgetsgent_r does not set errno to ERANGE but returns it directly. However sgetsgent (and I suppose other eventual callers as well) expect it to set the errno to the actual error).

The attached patch fixes the problem.