Re: Bug#192091: ssh: Ip Address assumptions (10.7 -> 10.0.0.7) changed
reassign 192091 glibc
thanks
On Mon, May 05, 2003 at 06:59:29PM -0700, Mike Fedyk wrote:
> Package: ssh
> Version: 1:3.6.1p1-1
> Severity: normal
>
> Previously I could "ssh 10.7" and connect to the host 10.0.0.7. Now I get:
>
> ssh: 10.7: Name or service not known
ssh is getting this from getaddrinfo():
(gdb) list
273 memset(&hints, 0, sizeof(hints));
274 hints.ai_family = family;
275 hints.ai_socktype = SOCK_STREAM;
276 snprintf(strport, sizeof strport, "%u", port);
277 if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0)
278 fatal("%s: %.100s: %s", __progname, host,
279 gai_strerror(gaierr));
280
281 /*
282 * Try to connect several times. On some machines, the first time
(gdb) p host
$1 = 0xbffffaf1 "10.7"
(gdb) p (char *) strport
$6 = 0xbffff320 "22"
(gdb) p hints
$3 = {ai_flags = 0, ai_family = 0, ai_socktype = 1, ai_protocol = 0, ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0, ai_next = 0x0}
I don't know if 10.7 is supposed to be supported by getaddrinfo(), but
if it is then glibc needs to implement it.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: