diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-08-03 13:25:59 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-08-03 13:25:59 +0000 |
commit | 254a4be83f0fc0e6d9bd928cf3fe0dca91c4e612 (patch) | |
tree | 508f48e6934f05610f5dbc903f19074c6ca614b8 /env.c | |
parent | 9df23d99817755d589a1ac0ff4af53a76d7eedcb (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |