summaryrefslogtreecommitdiffstats
path: root/usr.sbin/portsnap
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2006-01-27 14:42:15 +0000
committercperciva <cperciva@FreeBSD.org>2006-01-27 14:42:15 +0000
commitabe2470791285c4717ebd857367dc12714ae2fda (patch)
treeaedcb71a532db7052d51c906d3de95bb29cb9a6a /usr.sbin/portsnap
parentf0f163f63f63c3434f49a60f2a12249b0f69064a (diff)
downloadFreeBSD-src-abe2470791285c4717ebd857367dc12714ae2fda.zip
FreeBSD-src-abe2470791285c4717ebd857367dc12714ae2fda.tar.gz
Merge from accidental commit to RELENG_5:
Correctly identify the host and port values on a failed getaddrinfo lookup.
Diffstat (limited to 'usr.sbin/portsnap')
-rw-r--r--usr.sbin/portsnap/phttpget/phttpget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/portsnap/phttpget/phttpget.c b/usr.sbin/portsnap/phttpget/phttpget.c
index e45ab83..57ca0d0ab 100644
--- a/usr.sbin/portsnap/phttpget/phttpget.c
+++ b/usr.sbin/portsnap/phttpget/phttpget.c
@@ -326,7 +326,7 @@ main(int argc, char *argv[])
error = getaddrinfo(env_HTTP_PROXY ? env_HTTP_PROXY : servername,
env_HTTP_PROXY ? proxyport : "http", &hints, &res0);
if (error)
- errx(1, "%s: host = %s, port = %s",
+ errx(1, "host = %s, port = %s: %s",
env_HTTP_PROXY ? env_HTTP_PROXY : servername,
env_HTTP_PROXY ? proxyport : "http",
gai_strerror(error));
OpenPOWER on IntegriCloud