!11 [sync] PR-9: update to 1.20
From: @openeuler-sync-bot Reviewed-by: @seuzw Signed-off-by: @seuzw
This commit is contained in:
commit
da7481f55d
@ -1,31 +0,0 @@
|
|||||||
diff -urN a/libknet/host.c b/libknet/host.c
|
|
||||||
|
|
||||||
--- a/libknet/host.c 2021-08-04 10:17:01.912099056 +0800
|
|
||||||
+++ b/libknet/host.c 2021-08-04 10:17:55.708739020 +0800
|
|
||||||
@@ -77,7 +77,7 @@
|
|
||||||
/*
|
|
||||||
* set default host->name to host_id for logging
|
|
||||||
*/
|
|
||||||
- snprintf(host->name, KNET_MAX_HOST_LEN - 1, "%u", host_id);
|
|
||||||
+ snprintf(host->name, KNET_MAX_HOST_LEN, "%u", host_id);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* initialize links internal data
|
|
||||||
@@ -226,7 +226,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
for (host = knet_h->host_head; host != NULL; host = host->next) {
|
|
||||||
- if (!strncmp(host->name, name, KNET_MAX_HOST_LEN - 1)) {
|
|
||||||
+ if (!strncmp(host->name, name, KNET_MAX_HOST_LEN)) {
|
|
||||||
err = -1;
|
|
||||||
savederrno = EEXIST;
|
|
||||||
log_err(knet_h, KNET_SUB_HOST, "Duplicated name found on host_id %u",
|
|
||||||
@@ -235,7 +235,7 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- snprintf(knet_h->host_index[host_id]->name, KNET_MAX_HOST_LEN - 1, "%s", name);
|
|
||||||
+ snprintf(knet_h->host_index[host_id]->name, KNET_MAX_HOST_LEN, "%s", name);
|
|
||||||
|
|
||||||
exit_unlock:
|
|
||||||
pthread_rwlock_unlock(&knet_h->global_rwlock);
|
|
||||||
Binary file not shown.
BIN
kronosnet-1.20.tar.gz
Normal file
BIN
kronosnet-1.20.tar.gz
Normal file
Binary file not shown.
@ -19,11 +19,11 @@
|
|||||||
%endif
|
%endif
|
||||||
Name: kronosnet
|
Name: kronosnet
|
||||||
Summary: Multipoint-to-Multipoint VPN daemon
|
Summary: Multipoint-to-Multipoint VPN daemon
|
||||||
Version: 1.13
|
Version: 1.20
|
||||||
Release: 3
|
Release: 1
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
URL: https://kronosnet.org
|
URL: https://kronosnet.org
|
||||||
Source0: https://kronosnet.org/releases/%{name}-%{version}.tar.xz
|
Source0: https://kronosnet.org/releases/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
%if %{with buildman}
|
%if %{with buildman}
|
||||||
BuildRequires: libqb-devel libxml2-devel doxygen
|
BuildRequires: libqb-devel libxml2-devel doxygen
|
||||||
@ -65,8 +65,6 @@ BuildRequires: libnl3-devel
|
|||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Patch0001: backport-kronosnet-fix-format-truncation.patch
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n kronosnet-%{version} -p1
|
%autosetup -n kronosnet-%{version} -p1
|
||||||
|
|
||||||
@ -436,8 +434,12 @@ Requires: libknet1%{_isa} = %{version}-%{release}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 25 2022 zouzhimin <zouzhimin@kylinos.cn> - 1.20-1
|
||||||
|
- update to 1.20-1
|
||||||
|
|
||||||
* Wed Aug 04 2021 Liu Yinsi <liuyinsi@163.com> - 1.13-3
|
* Wed Aug 04 2021 Liu Yinsi <liuyinsi@163.com> - 1.13-3
|
||||||
- fix format-truncation to support gcc 10
|
- fix format-truncation to support gcc 10
|
||||||
|
|
||||||
* Sat Jul 18 2020 yanan li <liyanan032@huawei.com> - 1.13-2
|
* Sat Jul 18 2020 yanan li <liyanan032@huawei.com> - 1.13-2
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user