There is a bug in fix_hostname. The comment above function says that the hostname
is lowercased, but it's not.
the line which reads:
*dst++ = *src++;
in context of:
goto bad;
else
break;
}
*dst++ = *src++;
}
/* strip trailing gubbins */
if (dst > host && dst[-1] == '.') {
dst[-1] = '\0';
} else {
should read:
*dst++ = tolower(*src++);
Thanks,
--Perry
--
Perry Harrington Director of zelur xuniL ()
perry at webcom dot com System Architecture Think Blue. /\
Those who would give up essential liberty to purchase a little temporary safety
deserve neither liberty or safety. Nor, are they likely to end up with either.
-- Benjamin Franklin