!73 Change length limit of hostname from 255 to 64
From: @sherlock2010 Reviewed-by: @orange-snn Signed-off-by: @orange-snn
This commit is contained in:
commit
e9ab648bc5
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
|
||||
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 <zhouyihang3@huawei.com> - 33.19-15
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:Change length limit of hostname from 255 to 64
|
||||
|
||||
* Fri Dec 04 2020 gaihuiying <gaihuiying1@huawei.com> - 33.19-14
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user