!6 fix compiler warning
From: @jamesblunt Reviewed-by: @wguanghao, @dillon_chen Signed-off-by: @dillon_chen
This commit is contained in:
commit
1359b2e97d
25
0001-fix-compiler-warning.patch
Normal file
25
0001-fix-compiler-warning.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From a25cbfed66f1419aa8cbe7c7cf45c8685143fa50 Mon Sep 17 00:00:00 2001
|
||||
From: zhangyaqi <zhangyaqi@kylinos.cn>
|
||||
Date: Mon, 18 Mar 2024 19:39:41 +0800
|
||||
Subject: [PATCH] fix compiler warning
|
||||
|
||||
---
|
||||
lib/socket.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/lib/socket.c b/lib/socket.c
|
||||
index e025be5..ba978c8 100644
|
||||
--- a/lib/socket.c
|
||||
+++ b/lib/socket.c
|
||||
@@ -337,6 +337,8 @@ rpc_read_from_socket(struct rpc_context *rpc)
|
||||
}
|
||||
|
||||
do {
|
||||
+ pdu_size = 0;
|
||||
+ buf = NULL;
|
||||
/* Read record marker,
|
||||
* 4 bytes at the beginning of every pdu.
|
||||
*/
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: libnfs
|
||||
Version: 5.0.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A library for accessing NFS shares over a network
|
||||
|
||||
License: LGPLv2+ and BSD
|
||||
@ -9,6 +9,8 @@ Source0: https://github.com/sahlberg/libnfs/archive/refs/tags/%{name}-%{v
|
||||
|
||||
BuildRequires: gcc pkgconfig automake libtool
|
||||
|
||||
Patch1: 0001-fix-compiler-warning.patch
|
||||
|
||||
%description
|
||||
Package contains a library of functions for accessing NFSv2 and NFSv3 servers from user space.
|
||||
It provides a low-level,asynchronous RPC library for accessing NFS protocols, an asynchronous
|
||||
@ -79,6 +81,9 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
%doc README
|
||||
|
||||
%changelog
|
||||
* Thu Mar 21 2024 zhangyaqi <zhangyaqi@kylinos.cn> - 5.0.2-2
|
||||
- fix compiler warning in lib/socket.c
|
||||
|
||||
* Thu Jan 25 2024 wuguanghao <wuguanghao3@huawei.com> - 5.0.2-1
|
||||
- upgrade to 5.0.2:
|
||||
- fix double free in nfs3_pread_mcb()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user