Bug 120875
Summary: | getent returns incorrect service names in some cases | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Neil Horman <nhorman> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.0 | CC: | tao | ||||
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: | 2004-05-12 10:23:02 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
Neil Horman
2004-04-14 19:45:11 UTC
Created attachment 99424 [details]
patch to correct byte swapping behavior
This patch removes the (ostensibly incorrect) htons call from the getent
application and allows services to be returned correctly.
The patch is incorrect. http://www.opengroup.org/onlinepubs/007904975/functions/getservbyport.html "The port argument shall be in network byte order." There used to be a bug in _nss_nis_getservbyport_r which did not use ntohs (), but this is fixed in the current U2/U4 glibc candidates. See ftp://people.redhat.com/jakub/glibc/errata/ *** Bug 120878 has been marked as a duplicate of this bug. *** I'm assuming this is fixed in glibc-2.2.4-32.15 and glibc-2.3.2-95.20. If not, please reopen. |