aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rip6query
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>1999-12-28 05:37:39 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>1999-12-28 05:37:39 +0000
commit9b59fde4e0c287dde4ddb2f4f34f4b0a58dacbf9 (patch)
treeaa31366c35d453783e0dbf9fffbed908be3f0fad /usr.sbin/rip6query
parent0e17bca17c7b9244ca74b3ea91f6b2ea7376e38a (diff)
Notes
Diffstat (limited to 'usr.sbin/rip6query')
-rw-r--r--usr.sbin/rip6query/rip6query.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/rip6query/rip6query.c b/usr.sbin/rip6query/rip6query.c
index 59e7932a57a3a..6c2fb5c0fc36f 100644
--- a/usr.sbin/rip6query/rip6query.c
+++ b/usr.sbin/rip6query/rip6query.c
@@ -119,7 +119,11 @@ main(argc, argv)
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo(argv[0], pbuf, &hints, &res);
if (error) {
- errx(1, "%s: %s", argv[0], gai_strerror(error));
+ fprintf(stderr, "rip6query: %s: %s\n", argv[0],
+ gai_strerror(error));
+ if (error == EAI_SYSTEM)
+ errx(1, "%s", strerror(errno));
+ exit(1);
/*NOTREACHED*/
}
if (res->ai_next) {