From owner-freebsd-current Fri Feb 7 09:21:46 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA07915 for current-outgoing; Fri, 7 Feb 1997 09:21:46 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA07910 for ; Fri, 7 Feb 1997 09:21:39 -0800 (PST) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <15073(8)>; Fri, 7 Feb 1997 09:20:55 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177476>; Fri, 7 Feb 1997 09:20:41 -0800 To: roberto@eurocontrol.fr (Ollivier Robert) cc: freebsd-current@freebsd.org (FreeBSD Current Users' list) Subject: Re: fetch and gethostbyname2 In-reply-to: Your message of "Fri, 07 Feb 97 00:35:35 PST." <19970207093535.OS29821@caerdonn.eurocontrol.fr> Date: Fri, 7 Feb 1997 09:20:36 PST From: Bill Fenner Message-Id: <97Feb7.092041pst.177476@crevenia.parc.xerox.com> Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <19970207093535.OS29821@caerdonn.eurocontrol.fr> you write: >fetch: `atena:': cannot resolve: Unknown host Looks like an off-by-one error in parse_host_port(); note that there's still a colon on the end and I'll bet there is no machine named "atena:" . Try this patch. Bill Index: util.c =================================================================== RCS file: /home/ncvs/src/usr.bin/fetch/util.c,v retrieving revision 1.3 diff -u -r1.3 util.c --- util.c 1997/02/05 19:59:18 1.3 +++ util.c 1997/02/07 17:19:37 @@ -163,7 +163,6 @@ colon = strchr(s, ':'); if (colon != 0) { - colon++; errno = 0; ul = strtoul(colon + 1, &ep, 10); if (*ep != '\0' || colon[1] == '\0' || errno != 0