Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 1997 09:20:36 PST
From:      Bill Fenner <fenner@parc.xerox.com>
To:        roberto@eurocontrol.fr (Ollivier Robert)
Cc:        freebsd-current@freebsd.org (FreeBSD Current Users' list)
Subject:   Re: fetch and gethostbyname2 
Message-ID:  <97Feb7.092041pst.177476@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Fri, 07 Feb 97 00:35:35 PST." <19970207093535.OS29821@caerdonn.eurocontrol.fr> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97Feb7.092041pst.177476>