src/proto-common.c (generate_hostmask): Keep no-dot hostnames as the
mask -- mod-qserver can generate hostnames like "localhost".
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-47
# arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
#
+2006-09-23 00:58:27 GMT Michael Poole <mdpoole@troilus.org> patch-47
+
+ Summary:
+ Fix hostmask generation for hostnames without dots.
+ Revision:
+ srvx--devo--1.3--patch-47
+
+ src/proto-common.c (generate_hostmask): Keep no-dot hostnames as the
+ mask -- mod-qserver can generate hostnames like "localhost".
+
+ modified files:
+ ChangeLog src/proto-common.c
+
+
2006-09-23 00:55:02 GMT Michael Poole <mdpoole@troilus.org> patch-46
Summary:
for (ii=cnt=0; hostname[ii]; ii++)
if (hostname[ii] == '.')
cnt++;
- if (cnt == 1) {
- /* only a two-level domain name; leave hostname */
+ if (cnt == 0 || cnt == 1) {
+ /* only a one- or two-level domain name; leave hostname */
} else if (cnt == 2) {
for (ii=0; user->hostname[ii] != '.'; ii++) ;
/* Add 3 to account for the *. and \0. */