Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5861e7b064
!46 fix stale attr references
From: @noodlesland 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-07-31 02:47:53 +00:00
Wang_M
928b01bcd0 fix stale attr references 2024-07-31 01:57:14 +00:00
openeuler-ci-bot
f1d4aa64be
!45 回退attr使最小集核心软件包版本与基线配套
From: @twicy 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-02-27 12:58:30 +00:00
SuperSix173
7d108565ed Revert "attr: Upgrade attr to version 2.5.2"
This reverts commit f79aa96ccde847bf3c128f0bc4ad93ac8c8feba3.

Signed-off-by: tangyuchen <tangyuchen5@huawei.com>
2024-02-27 19:55:41 +08:00
openeuler-ci-bot
3f50fd546e
!43 Upgrade attr to version 2.5.2
From: @twicy 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-02-01 01:51:09 +00:00
tangyuchen
f79aa96ccd attr: Upgrade attr to version 2.5.2
Signed-off-by: tangyuchen <tangyuchen5@huawei.com>
2024-01-31 20:11:13 +08:00
openeuler-ci-bot
83fa4a6553
!38 修改了spec文件中多余的依赖关系
From: @twicy 
Reviewed-by: @gqmiao, @windfine, @volcanodragon 
Signed-off-by: @volcanodragon
2022-12-27 02:50:15 +00:00
euleroswander
114ce166df Fix a redundant obsolete dependency in spec
Signed-off-by: tangyuchen <tangyuchen5@huawei.com>
2022-12-26 14:22:40 +08:00
openeuler-ci-bot
4899b08577
!37 [sync] PR-35: fix compile warning
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-10-29 02:59:51 +00:00
wangzhiqiang
c36e2e25c1 fix compile warning
(cherry picked from commit f0a2d810df74081a67ce97e185f3e9b052a8fd69)
2022-10-29 10:52:17 +08:00
3 changed files with 123 additions and 2 deletions

View File

@ -0,0 +1,30 @@
From 8d7fa4cc89713e3e98afeec7cc6f1002855d4ac3 Mon Sep 17 00:00:00 2001
From: Kamil Dudka <kdudka@redhat.com>
Date: Mon, 19 Apr 2021 15:10:48 +0200
Subject: [PATCH] attr: eliminate a dead store in attr_copy_action()
... reported by clang:
libattr/attr_copy_action.c:158:22: warning[deadcode.DeadStores]: Value stored to 'action' during its initialization is never read
---
libattr/attr_copy_action.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libattr/attr_copy_action.c b/libattr/attr_copy_action.c
index 279f2df..d41dd2e 100644
--- a/libattr/attr_copy_action.c
+++ b/libattr/attr_copy_action.c
@@ -155,9 +155,8 @@ fail:
int
attr_copy_action(const char *name, struct error_context *ctx)
{
- struct attr_action *action = attr_actions;
-
if (!attr_parse_attr_conf(ctx)) {
+ struct attr_action *action;
for (action = attr_actions; action; action = action->next) {
if (!fnmatch(action->pattern, name, 0))
return action->action;
--
2.33.0

View File

@ -0,0 +1,81 @@
From dc4237cdec4e09709b13c15ba09f2f8715b3c173 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= <stepnem@gmail.com>
Date: Mon, 7 Mar 2022 23:03:55 +0100
Subject: Fix stale attr(5) references
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The man page has been named xattr(7) since 2015, cf. the following
man-pages commit:
commit 43834827b827
Author: Michael Kerrisk <mtk.manpages@gmail.com>
Date: Wed Apr 22 14:29:42 2015 +0200
xattr.7: Rename from attr.7
Signed-off-by: Štěpán Němec <stepnem@gmail.com>
---
README | 2 +-
man/man1/attr.1 | 2 +-
man/man1/getfattr.1 | 4 ++--
man/man1/setfattr.1 | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README b/README
index 006c344..937e394 100644
--- a/README
+++ b/README
@@ -6,7 +6,7 @@ Package home: http://savannah.nongnu.org/projects/attr
See the file doc/INSTALL for build, installation and post-
install configuration steps.
-Refer to the attr(5) manual page for general extended attribute
+Refer to the xattr(7) manual page for general extended attribute
(EA) information and references to other EA manual pages.
For more information on the build process, please refer to
diff --git a/man/man1/attr.1 b/man/man1/attr.1
index 84e80de..ebbd2ef 100644
--- a/man/man1/attr.1
+++ b/man/man1/attr.1
@@ -210,5 +210,5 @@ or
.BR attr_set (3),
.BR attr_multi (3),
.BR attr_remove (3),
-.BR attr (5),
+.BR xattr (7),
.BR xfsdump (8)
diff --git a/man/man1/getfattr.1 b/man/man1/getfattr.1
index 95da3fb..df8bb8a 100644
--- a/man/man1/getfattr.1
+++ b/man/man1/getfattr.1
@@ -90,7 +90,7 @@ The default value for
is "^user\\\\.",
which includes all the attributes in the user namespace. Specify "\-" for
including all attributes. Refer to
-.BR attr (5)
+.BR xattr (7)
for a more detailed discussion of namespaces.
.TP
.B \-\-absolute-names
@@ -139,4 +139,4 @@ or
.RI < acl-devel@nongnu.org >.
.SH "SEE ALSO"
.BR setfattr (1),
-.BR attr (5)
+.BR xattr (7)
diff --git a/man/man1/setfattr.1 b/man/man1/setfattr.1
index 50dd58f..e011ca7 100644
--- a/man/man1/setfattr.1
+++ b/man/man1/setfattr.1
@@ -118,4 +118,4 @@ or
.RI < acl-devel@nongnu.org >.
.SH "SEE ALSO"
.BR getfattr (1),
-.BR attr (5)
+.BR xattr (7)
--
cgit v1.1

View File

@ -1,7 +1,7 @@
%{!?_licensedir:%global license %%doc}
Name: attr
Version: 2.5.1
Release: 2
Release: 5
Summary: Commands for Manipulating Filesystem Extended Attributes
License: GPLv2+ AND LGPLv2+
URL: https://savannah.nongnu.org/projects/attr
@ -10,6 +10,8 @@ Source0: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.
# fix test-suite failure with perl-5.26.0 (#1473853)
Patch1: 0001-bypass-wrong-output-when-enabled-selinux.patch
Patch2: 0002-dont-skip-security.evm-when-copy-xattr.patch
Patch3: 0003-attr-eliminate-a-dead-store-in-attr_copy_action.patch
Patch4: 0004-fix-stale-attr-references.patch
BuildRequires: gettext, libtool, chrpath, gcc,
Provides: libattr
@ -26,7 +28,6 @@ with the SGI IRIX tool of the same name.
%package -n libattr-devel
License: LGPLv2+
Summary: Header files for libattr
Obsoletes: libattr
Requires: glibc-headers
%description -n libattr-devel
@ -96,6 +97,15 @@ fi
%{_mandir}/man3/*
%changelog
* Tue Jul 30 2024 wangmian <wangmian19@h-partners.com> - 2.5.1-5
- fix stale attr(5) references
* Mon Dec 26 2022 tangyuchen <tangyuchen5@huawei.com> - 2.5.1-4
- fix redundant spec code
* Sat Oct 29 2022 wangzhiqiang <wangzhiqiang95@huawei.com> - 2.5.1-3
- fix compile warning
* Mon Jan 24 2022 volcanodragon <linfeilong@huawei.com> - 2.5.1-2
- dont skip security.evm copy for ima