From 3610cd5cd67a4f6f9234de36410a75a2902842fe Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 22 Jul 2003 18:02:34 +0000 Subject: [PATCH] * resolve.c (main): If gethostbyname fails, report the failing hostname git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15711 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/resolve/ChangeLog | 5 +++++ src/tests/resolve/resolve.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/tests/resolve/ChangeLog b/src/tests/resolve/ChangeLog index b18d81dea..2ef4794fd 100644 --- a/src/tests/resolve/ChangeLog +++ b/src/tests/resolve/ChangeLog @@ -1,3 +1,8 @@ +2003-07-22 Ken Raeburn + + * resolve.c (main): If gethostbyname fails, report the failing + hostname. + 2002-08-29 Ken Raeburn * Makefile.in: Revert $(S)=>/ change, for Windows support. diff --git a/src/tests/resolve/resolve.c b/src/tests/resolve/resolve.c index 64f26986a..b1fe969d3 100644 --- a/src/tests/resolve/resolve.c +++ b/src/tests/resolve/resolve.c @@ -111,7 +111,9 @@ main(argc, argv) sethostent(0); if((host = gethostbyname (myname)) == NULL) { - fprintf(stderr, "Could not look up hostname - fatal\n"); + fprintf(stderr, + "Could not look up address for hostname '%s' - fatal\n", + myname); exit(2); } -- 2.26.2