Change length limit of hostname from 255 to 64
This commit is contained in:
parent
58189cd377
commit
c9bcaef26c
27
Change-length-limit-of-hostname-from-255-to-64.patch
Normal file
27
Change-length-limit-of-hostname-from-255-to-64.patch
Normal file
@ -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
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%define _empty_manifest_terminate_build 0
|
%define _empty_manifest_terminate_build 0
|
||||||
Name: anaconda
|
Name: anaconda
|
||||||
Version: 33.19
|
Version: 33.19
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: Graphical system installer
|
Summary: Graphical system installer
|
||||||
License: GPLv2+ and MIT
|
License: GPLv2+ and MIT
|
||||||
URL: http://fedoraproject.org/wiki/Anaconda
|
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
|
Patch6008: fix-remove-unknow-partition-is-sda-failed.patch
|
||||||
Patch6009: use-modinfo-to-check-ko-before-modprobe.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 dbusver 1.2.3
|
||||||
%define dnfver 3.6.0
|
%define dnfver 3.6.0
|
||||||
%define dracutver 034-7
|
%define dracutver 034-7
|
||||||
@ -254,6 +256,12 @@ update-desktop-database &> /dev/null || :
|
|||||||
%{_datadir}/gtk-doc
|
%{_datadir}/gtk-doc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 10 2020 zhouyihang <zhouyihang3@huawei.com> - 33.19-14
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Change length limit of hostname from 255 to 64
|
||||||
|
|
||||||
* Sat Nov 28 2020 lunankun <lunankun@huawei.com> - 33.19-13
|
* Sat Nov 28 2020 lunankun <lunankun@huawei.com> - 33.19-13
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user