modify hotpatch id length limit from 20 to 32

Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
This commit is contained in:
Zhipeng Xie 2021-02-10 02:16:14 -05:00
parent 21544bff94
commit f8d67d64eb
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Name: kpatch
Epoch: 1
Version: 0.9.1
Release: 11
Release: 12
Summary: A Linux dynamic kernel patching infrastructure
License: GPLv2
@ -97,6 +97,12 @@ popd
%{_mandir}/man1/*.1.gz
%changelog
* Wed Feb 10 2021 Zhipeng Xie<xiezhipeng1@huawei.com> -1:0.9.1-12
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:modify hotpatch id length limit from 20 to 32
* Mon Jan 11 2021 Zhipeng Xie<xiezhipeng1@huawei.com> -1:0.9.1-11
- Type:enhancement
- ID:NA

View File

@ -154,7 +154,7 @@ function fn_check_reg_char()
function fn_check_id()
{
local l_id=$1
fn_check_reg_char "$l_id" "20" "-_"
fn_check_reg_char "$l_id" "32" "-_"
if [ $? -ne 0 ];then
echo "error: check hotpatch id failed"
return 1