summaryrefslogtreecommitdiffstats
path: root/src/tests/resolve
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-07-22 18:02:34 +0000
committerKen Raeburn <raeburn@mit.edu>2003-07-22 18:02:34 +0000
commit3610cd5cd67a4f6f9234de36410a75a2902842fe (patch)
treeecac97b47adc4ef9ea2cadc1d36d784396107280 /src/tests/resolve
parent0bd27e0db808dd5017e0495fc0076a2aea73f9cb (diff)
downloadkrb5-3610cd5cd67a4f6f9234de36410a75a2902842fe.tar.gz
krb5-3610cd5cd67a4f6f9234de36410a75a2902842fe.tar.xz
krb5-3610cd5cd67a4f6f9234de36410a75a2902842fe.zip
* 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
Diffstat (limited to 'src/tests/resolve')
-rw-r--r--src/tests/resolve/ChangeLog5
-rw-r--r--src/tests/resolve/resolve.c4
2 files changed, 8 insertions, 1 deletions
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 <raeburn@mit.edu>
+
+ * resolve.c (main): If gethostbyname fails, report the failing
+ hostname.
+
2002-08-29 Ken Raeburn <raeburn@mit.edu>
* 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);
}