From 254a4be83f0fc0e6d9bd928cf3fe0dca91c4e612 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 3 Aug 2006 13:25:59 +0000 Subject: Revise comments before name canonicalization to make the code easier to understand. Suggested by Nico Golde. svn path=/branches/BRANCH_6-3/; revision=4877 --- env.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/env.c b/env.c index 457255af..85c992c0 100644 --- a/env.c +++ b/env.c @@ -147,10 +147,12 @@ char *host_fqdn(int required) exit(PS_DNS); } - /* if we got a . in the hostname assume it is a FQDN */ + /* if we got no . in the hostname, try to canonicalize it, + * else assume it is a FQDN */ if (strchr(tmpbuf, '.') == NULL) { - /* if we got a basename (as we do in Linux) make a FQDN of it */ + /* if we got a basename without dots, as we often do in Linux, + * look up canonical name (make a FQDN of it) */ struct addrinfo hints, *res; int e; -- cgit v1.2.3