diff --git a/0001-fix-compiler-warning.patch b/0001-fix-compiler-warning.patch new file mode 100644 index 0000000000000000000000000000000000000000..f2290ac62f00b79da98bd1a6df733e1535e04d62 --- /dev/null +++ b/0001-fix-compiler-warning.patch @@ -0,0 +1,25 @@ +From a25cbfed66f1419aa8cbe7c7cf45c8685143fa50 Mon Sep 17 00:00:00 2001 +From: zhangyaqi +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 + diff --git a/libnfs.spec b/libnfs.spec index 1ccce722262470c3177bb06e1f96d010bb517d8a..f8f203b901d5f0aceb349578ded2bf5e4e7e9f7b 100644 --- a/libnfs.spec +++ b/libnfs.spec @@ -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 - 5.0.2-2 +- fix compiler warning in lib/socket.c + * Thu Jan 25 2024 wuguanghao - 5.0.2-1 - upgrade to 5.0.2: - fix double free in nfs3_pread_mcb()