diff --git a/SOURCES/nfs4-acl-tools-0.4.2-acl-ptr-null.patch b/SOURCES/nfs4-acl-tools-0.4.2-acl-ptr-null.patch new file mode 100644 index 0000000..8fc49f4 --- /dev/null +++ b/SOURCES/nfs4-acl-tools-0.4.2-acl-ptr-null.patch @@ -0,0 +1,25 @@ +commit ea0d882fa8c226ac27be4651f9550aa17d75462a +Author: Steve Dickson +Date: Mon Nov 21 14:07:58 2022 -0500 + + nfs4_getfacl: Initialize acl pointer to NULL + + nfs4_getfacl.c: scope_hint: In function 'print_acl_from_path' + nfs4_getfacl.c:168:17: warning[-Wmaybe-uninitialized]: + 'acl' may be used uninitialized in this function + + Signed-off-by: Steve Dickson + +diff --git a/nfs4_getfacl/nfs4_getfacl.c b/nfs4_getfacl/nfs4_getfacl.c +index 954cf7e..ddb3005 100644 +--- a/nfs4_getfacl/nfs4_getfacl.c ++++ b/nfs4_getfacl/nfs4_getfacl.c +@@ -148,7 +148,7 @@ out: + + static void print_acl_from_path(const char *fpath, enum acl_type type) + { +- struct nfs4_acl *acl; ++ struct nfs4_acl *acl = NULL; + + switch (type) { + case ACL_TYPE_ACL: diff --git a/SPECS/nfs4-acl-tools.spec b/SPECS/nfs4-acl-tools.spec index 6a9598e..7c7396e 100644 --- a/SPECS/nfs4-acl-tools.spec +++ b/SPECS/nfs4-acl-tools.spec @@ -1,6 +1,6 @@ Name: nfs4-acl-tools Version: 0.4.2 -Release: 0%{?dist} +Release: 3%{?dist} Summary: The nfs4 ACL tools License: BSD URL: http://git.linux-nfs.org/?p=bfields/nfs4-acl-tools.git;a=summary @@ -10,6 +10,8 @@ BuildRequires: make BuildRequires: libtool BuildRequires: libattr-devel +Patch01: nfs4-acl-tools-0.4.2-acl-ptr-null.patch + %description This package contains commandline ACL utilities for the Linux NFSv4 client. @@ -37,6 +39,15 @@ make DESTDIR=%{buildroot} install %{_mandir}/man5/* %changelog +* Wed Feb 21 2024 Pavel Reichl - 0.4.2-3 +- Prepare gating tests (rhel-26256) + +* Tue Jun 6 2023 Steve Dickson - 0.4.2-2 +- Rebuild: nfs4_getfacl: Initialize acl pointer to NULL (bz 2144829) + +* Mon Feb 13 2023 Steve Dickson - 0.4.2-1 +- nfs4_getfacl: Initialize acl pointer to NULL (bz 2144829) + * Tue Nov 15 2022 Steve Dickson - 0.4.2-0 - Updated to the latest upstream release: nfs4-acl-tools-0.4.2 (bz 2059052)