Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8000 - qstat 25b-r1 unable to resolve host names.
Summary: qstat 25b-r1 unable to resolve host names.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Bryon Roche (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-16 15:50 UTC by Tyler Lund
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Lund 2002-09-16 15:50:45 UTC
I merged qstat 25b-r1 today, and it is now unable to resolve host names. The 
following no longer works:

$ /usr/bin/qstat -R -u -hlm,game=valve half-life.west.won.net
invalid address: half-life.west.won.net

specifying the host by ip address does work:

/usr/bin/qstat -R -u -hlm,game=valve 198.74.33.42
Comment 1 SpanKY gentoo-dev 2002-09-16 18:41:54 UTC
kain: the qstat-25b.gcc3-fix patch breaks hostname lookups ...
i did compile qstat-25b on gcc3.2 so i'm not sure what this patch is for ...

i'm guessing its this section of the patch ...
-    ipaddr= inet_addr(arg);
+    aton_ret = inet_aton(arg,&ipbuf);
+    if (!aton_ret) {
+       print_file_location();
+       fprintf( stderr, "invalid address: %s\n", arg);
+    }
+    ipaddr = ipbuf.s_addr;
Comment 2 Bryon Roche (RETIRED) gentoo-dev 2002-09-17 06:54:24 UTC
Oops. Sorry about that.  I really just wanted lucky bug #8000! (or not)

The tolower part of the patch stays though... That part of the code breaks on
the gcc3.2 systems I've tested when running with XQF.


I just tried with your testcase, and all should be fine.  Try a remerge.