Bug 533323 - Wrong usage of ghn_errno and strerror_r
Summary: Wrong usage of ghn_errno and strerror_r
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: autofs
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Ian Kent
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-06 05:24 UTC by Ian Kent
Modified: 2010-03-30 08:37 UTC (History)
3 users (show)

Fixed In Version: autofs-5.0.1-0.rc2.133.el5
Doc Type: Bug Fix
Doc Text:
Clone Of: 483756
Environment:
Last Closed: 2010-03-30 08:37:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch - fix incorrect host name lookup error message (2.01 KB, patch)
2009-11-25 06:18 UTC, Ian Kent
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0265 0 normal SHIPPED_LIVE autofs bug fix update 2010-03-29 12:54:19 UTC

Description Ian Kent 2009-11-06 05:24:26 UTC
+++ This bug was initially created as a clone of Bug #483756 +++

Created an attachment (id=330729)
A patch fixing the issue.

Description of problem:

When unexisting host name is given, automount reports following message to log
  automount[2234]: create_udp_client: hostname lookup failed: Operation not permitted

because gethostbyname_r is failed. However, in this case, this message should be
  automount[2234]: create_udp_client: hostname lookup failed: Unknown host

Broken message comes from sterror_r(ghn_errno,...); See the patch for more detail.
  
Version-Release number of selected component (if applicable):

  autofs-5.0.3-36

How reproducible:

 This report is just based on code-reading. So I cannot tell the way. Sorry.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

--- Additional comment from ikent on 2009-02-03 09:50:23 EDT ---

OK, will fix.

Comment 2 Ian Kent 2009-11-25 06:18:16 UTC
Created attachment 373667 [details]
Patch - fix incorrect host name lookup error message

Comment 7 errata-xmlrpc 2010-03-30 08:37:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0265.html


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