From f6247f90c9644d7a396531c219c585f705e0c251 Mon Sep 17 00:00:00 2001 From: Stephan Wiesand Date: Tue, 17 Nov 2015 15:03:03 +0100 Subject: [PATCH] writeconfig: emit error messages again in VerifyEntries Before commit e4a8a7a38dbf29e89bc1a7b6b017447a6aa0c764 an error message was printed if looking up a server hostname failed. Restore this, and also print a message in the now detected case that the lookup returns loopback addresses only. Change-Id: Idf7c3133ab5c83e081335ba1dc8fcbddb7da7329 Reviewed-on: http://gerrit.openafs.org/12097 Tested-by: BuildBot Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk --- src/auth/writeconfig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/auth/writeconfig.c b/src/auth/writeconfig.c index 715d8a8..5655dba 100644 --- a/src/auth/writeconfig.c +++ b/src/auth/writeconfig.c @@ -45,6 +45,8 @@ VerifyEntries(struct afsconf_cell *aci) code = getaddrinfo(aci->hostName[i], NULL, &hints, &result); if (code) { + printf("Host %s not found in host database...\n", + aci->hostName[i]); return AFSCONF_FAILURE; } for (rp = result; rp != NULL; rp = rp->ai_next) { @@ -56,6 +58,8 @@ VerifyEntries(struct afsconf_cell *aci) } freeaddrinfo(result); if (aci->hostAddr[i].sin_addr.s_addr == 0) { + printf("No non-loopback addresses found for host %s\n", + aci->hostName[i]); return AFSCONF_FAILURE; } } -- 1.9.4