Bug 233851 - resolveip fails on hostnames with a leading digit
resolveip fails on hostnames with a leading digit
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: mysql (Show other bugs)
5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Lane
David Lawrence
http://bugs.mysql.com/bug.php?id=27427
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-25 09:32 EDT by Kasper Dupont
Modified: 2013-07-02 23:12 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-03-26 13:34:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fix the bug by using inet_aton rather than the obsolete inet_addr function (553 bytes, patch)
2007-03-25 09:32 EDT, Kasper Dupont
no flags Details | Diff

  None (edit)
Description Kasper Dupont 2007-03-25 09:32:15 EDT
Description of problem:
resolveip produce incorrect result if given a hostname starting with a digit

Version-Release number of selected component (if applicable):
mysql-server-5.0.27-1.fc5

How reproducible:
Happens every time.

Steps to Reproduce:
1. resolveip 42.kasperd.net
  
Actual results:
Broadcast

Expected results:
IP address of 42.kasperd.net is 80.167.222.169
Comment 1 Kasper Dupont 2007-03-25 09:32:16 EDT
Created attachment 150849 [details]
Fix the bug by using inet_aton rather than the obsolete inet_addr function
Comment 2 Tom Lane 2007-03-25 14:39:56 EDT
I would suggest filing this upstream at bugs.mysql.com --- AFAICS it is not a bug in our packaging of 
mysql.
Comment 3 Colin Charles 2007-03-26 12:07:02 EDT
It isn't a Fedora fault, and upstream URL is here now.
Comment 4 Tom Lane 2007-03-26 13:34:53 EDT
Thanks for filing it with the proper people.

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