Blame SOURCES/tar-1.33-fix-capabilities-test.patch

b96032
From: Pavel Raiskup <praiskup@redhat.com>
b96032
Date: Tue, 16 Feb 2021 08:10:22 +0100
b96032
Subject: [PATCH] Related discussion in the Fedora pull-request:
b96032
 https://src.fedoraproject.org/rpms/tar/pull-request/8
b96032
b96032
Upstream report:
b96032
https://www.mail-archive.com/bug-tar@gnu.org/msg05943.html
b96032
b96032
* tests/capabs_raw01.at: Newer systems (currently e.g. Fedora 34)
b96032
print getcap output in format CAP=VAL, not CAP+VAL.
b96032
---
b96032
 tests/capabs_raw01.at | 4 ++--
b96032
 1 file changed, 2 insertions(+), 2 deletions(-)
b96032
b96032
diff --git a/tests/capabs_raw01.at b/tests/capabs_raw01.at
b96032
index a1d9411..d3da923 100644
b96032
--- a/tests/capabs_raw01.at
b96032
+++ b/tests/capabs_raw01.at
b96032
@@ -45,10 +45,10 @@ rm -rf dir
b96032
 tar --xattrs --xattrs-include='*' -xf archive.tar
b96032
 
b96032
 # Newer systems print = instead of + here
b96032
-getcap dir/file | sed 's/+/=/'
b96032
+getcap dir/file | sed -e 's/+/=/' -e 's|dir/file = |dir/file |'
b96032
 ],
b96032
 [0],
b96032
-[dir/file = cap_chown=ei
b96032
+[dir/file cap_chown=ei
b96032
 ])
b96032
 
b96032
 AT_CLEANUP
b96032
-- 
b96032
2.26.0
b96032