Bug 205358

Summary: [RHEL3] getent returns nothing if the host starts by a number [135422]
Product: Red Hat Enterprise Linux 3 Reporter: Jose Plans <jplans>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.8CC: fweimer, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: RHBA-2007-0471 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-11 14:49:40 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
patch from 2.3.3-71 supposed to fix the problem. [135422] none

Description Jose Plans 2006-09-06 06:50:26 EDT
Description of problem:

When running getent to retrieve its IP address we noticed that if you run it
against a system that has a hostname starting with numbers.  For eg.
123host.lehman.com.. it will not return the correct IP address and exits with a
status of 2.  We tested this on RHEL4 and noticed that this is fixed in this
version.  Was this fixed in later versions of RHEL3 also?  This is a widely used
command for shell scripts and the like.  Thanks!

[root@tkodclxgiprd001 kickstart]# getent hosts 380g4-cbtst
[root@tkodclxgiprd001 kickstart]# echo $?

[root@njenglx001 tmp]# uname -r
[root@njenglx001 tmp]# getent hosts 380g4-cbtst    380g4-cbtst.lehman.com

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. set in /etc/hosts a host begining by a number
2. getent hosts <that host>

Actual results:
no output.

Expected results:
host ip.

Additional info:
Fixed on 2.3.3-71
Comment 1 Jose Plans 2006-09-06 06:50:27 EDT
Created attachment 135644 [details]
patch from 2.3.3-71 supposed to fix the problem. [135422]
Comment 9 Red Hat Bugzilla 2007-06-11 14:49:41 EDT
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 the 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.

Comment 10 Issue Tracker 2007-07-06 12:33:30 EDT
Verified this is fixed in the errata version of glibc-common


Thanks Frank.

Internal Status set to 'Resolved'
Status set to: Closed by Client

This event sent from IssueTracker by stewart.smith@lehman.com 
 issue 101124