summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalex <>2015-03-22 00:58:16 +0000
committerhalex <>2015-03-22 00:58:16 +0000
commit3569ef02e7db1fd98383bdf5283da4fd5d52bf21 (patch)
treee61ae12b0156c78f5c8d1c91b538630538983d6a
parent0d9aa4e26f586e474c2faf71df03853e8d3a53c8 (diff)
downloadopenbsd-3569ef02e7db1fd98383bdf5283da4fd5d52bf21.tar.gz
openbsd-3569ef02e7db1fd98383bdf5283da4fd5d52bf21.tar.bz2
openbsd-3569ef02e7db1fd98383bdf5283da4fd5d52bf21.zip
unmute rcmd hostname lookup failure
ok millert@ jung@
-rw-r--r--src/lib/libc/net/rcmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c
index 4004882deb..d10410b25a 100644
--- a/src/lib/libc/net/rcmd.c
+++ b/src/lib/libc/net/rcmd.c
@@ -97,9 +97,8 @@ rcmd_af(char **ahost, int porta, const char *locuser, const char *remuser,
97 hints.ai_flags = AI_CANONNAME; 97 hints.ai_flags = AI_CANONNAME;
98 error = getaddrinfo(*ahost, pbuf, &hints, &res); 98 error = getaddrinfo(*ahost, pbuf, &hints, &res);
99 if (error) { 99 if (error) {
100#if 0 100 (void)fprintf(stderr, "rcmd: %s: %s\n", *ahost,
101 warnx("%s: %s", *ahost, gai_strerror(error)); 101 gai_strerror(error));
102#endif
103 return (-1); 102 return (-1);
104 } 103 }
105 if (res->ai_canonname) { 104 if (res->ai_canonname) {