aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-08-03 13:25:59 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-08-03 13:25:59 +0000
commit254a4be83f0fc0e6d9bd928cf3fe0dca91c4e612 (patch)
tree508f48e6934f05610f5dbc903f19074c6ca614b8 /env.c
parent9df23d99817755d589a1ac0ff4af53a76d7eedcb (diff)
downloadfetchmail-254a4be83f0fc0e6d9bd928cf3fe0dca91c4e612.tar.gz
fetchmail-254a4be83f0fc0e6d9bd928cf3fe0dca91c4e612.tar.bz2
fetchmail-254a4be83f0fc0e6d9bd928cf3fe0dca91c4e612.zip
Revise comments before name canonicalization to make the code easier to understand.
Suggested by Nico Golde. svn path=/branches/BRANCH_6-3/; revision=4877
Diffstat (limited to 'env.c')
-rw-r--r--env.c6
1 files 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;