aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/portsnap/phttpget
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2006-01-27 14:42:15 +0000
committerColin Percival <cperciva@FreeBSD.org>2006-01-27 14:42:15 +0000
commitb258da0fa9d95b7bbd49a7fdaff2cf0af9793a83 (patch)
treeaedcb71a532db7052d51c906d3de95bb29cb9a6a /usr.sbin/portsnap/phttpget
parent78b6fc8d2d30062fdb09dabeb820bed22cb1ae33 (diff)
downloadsrc-b258da0fa9d95b7bbd49a7fdaff2cf0af9793a83.tar.gz
src-b258da0fa9d95b7bbd49a7fdaff2cf0af9793a83.zip
Merge from accidental commit to RELENG_5:
Correctly identify the host and port values on a failed getaddrinfo lookup.
Notes
Notes: svn path=/head/; revision=154909
Diffstat (limited to 'usr.sbin/portsnap/phttpget')
-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 e45ab83616e6..57ca0d0ab73e 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));