summaryrefslogtreecommitdiffstats
path: root/src/tests/resolve
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-09-01 22:02:32 +0000
committerGreg Hudson <ghudson@mit.edu>2011-09-01 22:02:32 +0000
commitff00b9eceef3c389aebb954142ff01e03e1fd941 (patch)
tree5e748d007fa2b29e18413c292ffd56f43c401688 /src/tests/resolve
parente8972c5914e58520b2f0a873e1a63e370866b7a6 (diff)
downloadkrb5-ff00b9eceef3c389aebb954142ff01e03e1fd941.tar.gz
krb5-ff00b9eceef3c389aebb954142ff01e03e1fd941.tar.xz
krb5-ff00b9eceef3c389aebb954142ff01e03e1fd941.zip
Make dejagnu tests work with non-FQDN hostname
By making an entry for $hostname in [domain_realm], we can relax the requirement that the canonicalized local hostname must have a parent domain. This makes the test suite work more easily on Fedora. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25124 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/resolve')
-rw-r--r--src/tests/resolve/resolve.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/tests/resolve/resolve.c b/src/tests/resolve/resolve.c
index 69f0e177de..7339d21bd9 100644
--- a/src/tests/resolve/resolve.c
+++ b/src/tests/resolve/resolve.c
@@ -152,29 +152,6 @@ main(argc, argv)
else
printf("FQDN: %s\n", fqdn);
- /*
- * The host name must have at least one '.' in the name, and
- * if there is only one '.', it must not be at the end of the
- * string. (i.e., "foo." is not a FQDN)
- */
- ptr = strchr(fqdn, '.');
- if (ptr == NULL || ptr[1] == '\0') {
- fprintf(stderr,
- "\nResolve library did not return a "
- "fully qualified domain name.\n\n"
- "If you are using /etc/hosts before DNS, "
- "e.g. \"files\" is listed first\n"
- "for \"hosts:\" in nsswitch.conf, ensure that "
- "you have listed the FQDN\n"
- "as the first name for the local host.\n\n"
- "If this does not correct the problem, "
- "you may have to reconfigure the kerberos\n"
- "distribution to select a "
- "different set of libraries using \n"
- "--with-netlib[=libs]\n");
- exit(3);
- }
-
if (!quiet)
printf("Resolve library appears to have passed the test\n");