diff --git a/Change-length-limit-of-hostname-from-255-to-64.patch b/Change-length-limit-of-hostname-from-255-to-64.patch new file mode 100644 index 0000000..ecbab3c --- /dev/null +++ b/Change-length-limit-of-hostname-from-255-to-64.patch @@ -0,0 +1,27 @@ +From f4a9c3a8588ec5a6563d76a0a4d319e078912f01 Mon Sep 17 00:00:00 2001 +From: sherlock2010 <15151851377@163.com> +Date: Thu, 10 Dec 2020 14:26:12 +0800 +Subject: [PATCH] Change length limit of hostname from 255 to 64 + +--- + pyanaconda/network.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyanaconda/network.py b/pyanaconda/network.py +index 6aab84a..00ccd0a 100644 +--- a/pyanaconda/network.py ++++ b/pyanaconda/network.py +@@ -109,8 +109,8 @@ def is_valid_hostname(hostname, local=False): + if not hostname: + return (False, _("Host name cannot be None or an empty string.")) + +- if len(hostname) > 255: +- return (False, _("Host name must be 255 or fewer characters in length.")) ++ if len(hostname) > 64: ++ return (False, _("Host name must be 64 or fewer characters in length.")) + + if local and hostname[-1] == ".": + return (False, _("Local host name must not end with period '.'.")) +-- +1.8.3.1 + diff --git a/anaconda.spec b/anaconda.spec index 944bf06..331d4a2 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,7 +1,7 @@ %define _empty_manifest_terminate_build 0 Name: anaconda Version: 33.19 -Release: 14 +Release: 15 Summary: Graphical system installer License: GPLv2+ and MIT URL: http://fedoraproject.org/wiki/Anaconda @@ -52,6 +52,8 @@ Patch6017: ntp-servers-improve-008-Use-the-structure-for-time-sources-in-TUI. Patch6018: ntp-servers-improve-009-Use-the-structure-for-time-sources-in-GUI.patch Patch6019: ntp-servers-improve-010-Add-support-for-the-timesource-kickstart-command.patch +Patch9024: Change-length-limit-of-hostname-from-255-to-64.patch + %define dbusver 1.2.3 %define dnfver 3.6.0 %define dracutver 034-7 @@ -264,6 +266,12 @@ update-desktop-database &> /dev/null || : %{_datadir}/gtk-doc %changelog +* Thu Dec 10 2020 zhouyihang - 33.19-15 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Change length limit of hostname from 255 to 64 + * Fri Dec 04 2020 gaihuiying - 33.19-14 - Type:bugfix - ID:NA