import CS nfs4-acl-tools-0.4.2-2.el9

This commit is contained in:
eabdullin 2023-09-21 19:38:57 +00:00
parent aa0f510bba
commit d677e5fb2d
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,25 @@
commit ea0d882fa8c226ac27be4651f9550aa17d75462a
Author: Steve Dickson <steved@redhat.com>
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 <steved@redhat.com>
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:

View File

@ -1,6 +1,6 @@
Name: nfs4-acl-tools
Version: 0.4.2
Release: 0%{?dist}
Release: 2%{?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,12 @@ make DESTDIR=%{buildroot} install
%{_mandir}/man5/*
%changelog
* Tue Jun 6 2023 Steve Dickson <steved@redhat.com> - 0.4.2-2
- Rebuild: nfs4_getfacl: Initialize acl pointer to NULL (bz 2144829)
* Mon Feb 13 2023 Steve Dickson <steved@redhat.com> - 0.4.2-1
- nfs4_getfacl: Initialize acl pointer to NULL (bz 2144829)
* Tue Nov 15 2022 Steve Dickson <steved@redhat.com> - 0.4.2-0
- Updated to the latest upstream release: nfs4-acl-tools-0.4.2 (bz 2059052)