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 b0e5b43..48296a3 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,7 +1,7 @@ %define _empty_manifest_terminate_build 0 Name: anaconda Version: 33.19 -Release: 13 +Release: 14 Summary: Graphical system installer License: GPLv2+ and MIT URL: http://fedoraproject.org/wiki/Anaconda @@ -42,6 +42,8 @@ Patch6007: fix-0-storage-devices-selected.patch Patch6008: fix-remove-unknow-partition-is-sda-failed.patch Patch6009: use-modinfo-to-check-ko-before-modprobe.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 @@ -254,6 +256,12 @@ update-desktop-database &> /dev/null || : %{_datadir}/gtk-doc %changelog +* Thu Dec 10 2020 zhouyihang - 33.19-14 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Change length limit of hostname from 255 to 64 + * Sat Nov 28 2020 lunankun - 33.19-13 - Type:bugfix - ID:NA