From: Roy Marples Date: Fri, 8 Aug 2008 13:47:57 +0000 (+0000) Subject: We should not make any restrictions on hostname. RFC2131 says that hostname field... X-Git-Tag: v4.0.2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e4fa6b47974aea01257a054d038b9136dc24c3b;p=thirdparty%2Fdhcpcd.git We should not make any restrictions on hostname. RFC2131 says that hostname field *could* be fully or partially qualified. --- diff --git a/dhcpcd.c b/dhcpcd.c index 59de265e..94cde5af 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -842,21 +842,6 @@ main(int argc, char **argv) } } - if ((p = strchr(options->hostname + 1, '.'))) { - if (options->fqdn == FQDN_DISABLE) { - *p = '\0'; - options->hostname[0] = strlen(options->hostname + 1); - } - } else { - if (options->fqdn != FQDN_DISABLE) { - logger(LOG_WARNING, "hostname `%s' is not a FQDN", - options->hostname); - options->fqdn = FQDN_DISABLE; - } - } - if (options->fqdn != FQDN_DISABLE) - del_reqmask(options->reqmask, DHCP_HOSTNAME); - if (options->request_address.s_addr == 0 && (options->options & DHCPCD_INFORM || options->options & DHCPCD_REQUEST))