Bug 437945
Summary: | nis+-based getgrent mistakenly sets errno when there are no more entries | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jim Meyering <meyering> | ||||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | rawhide | CC: | drepper, fweimer | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2008-04-04 22:40:22 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Jim Meyering
2008-03-18 11:39:31 UTC
Created attachment 298380 [details]
bugfix patch
The patch I posted minutes ago is worth applying, but was not relevant to the getgrent bug. Sorry about the mix-up. Here's the patch that is likely to actually solve the problem. 2008-03-18 Jim Meyering <meyering> nis+/getgrent: don't set errno when there are no more entries * nis/nis_call.c (__libc_lock_define_initialized): Don't let ENOENT from failure to stat "/var/nis/NIS_COLD_START" affect leak out to confuse the getgrent caller, who must be able to distinguish a return value of NULL indicating no more values and a return value of NULL indicating an error occurred. Created attachment 298395 [details]
the proper bugfix
Fixed upstream with a patch different from the one attached here. Should be in glibc-2.7.90-12 and above. |