summaryrefslogtreecommitdiff
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2015-03-22 00:58:17 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2015-03-22 00:58:17 +0000
commitaee4d34a069aedd1772e89bf2e2a8b4b1f6112a3 (patch)
tree0d2b590d83508ddd76a15588ff7cef664df71d48 /lib/libc/net/rcmd.c
parentb839abf8f7b88a7623fe443621270c9885df11fc (diff)
unmute rcmd hostname lookup failure
ok millert@ jung@
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r--lib/libc/net/rcmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 4004882debe..d10410b25a2 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -97,9 +97,8 @@ rcmd_af(char **ahost, int porta, const char *locuser, const char *remuser,
hints.ai_flags = AI_CANONNAME;
error = getaddrinfo(*ahost, pbuf, &hints, &res);
if (error) {
-#if 0
- warnx("%s: %s", *ahost, gai_strerror(error));
-#endif
+ (void)fprintf(stderr, "rcmd: %s: %s\n", *ahost,
+ gai_strerror(error));
return (-1);
}
if (res->ai_canonname) {