fix stale attr references

This commit is contained in:
Wang_M 2024-07-30 07:21:10 +00:00
parent f1d4aa64be
commit 928b01bcd0
2 changed files with 86 additions and 1 deletions

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: 4
Release: 5
Summary: Commands for Manipulating Filesystem Extended Attributes
License: GPLv2+ AND LGPLv2+
URL: https://savannah.nongnu.org/projects/attr
@ -11,6 +11,7 @@ Source0: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.
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
@ -96,6 +97,9 @@ 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