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

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