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