From: Pavel Raiskup Date: Mon, 8 Feb 2021 15:50:31 +0000 (+0200) Subject: xattrs: fix capabilities root test X-Git-Tag: release_1_34~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=beeb19f927762f21aed7fc20e8e359c7aa21388b;p=thirdparty%2Ftar.git xattrs: fix capabilities root test Related discussion in the Fedora pull-request: https://src.fedoraproject.org/rpms/tar/pull-request/8 * tests/capabs_raw01.at: Newer systems (currently e.g. Fedora 34) print getcap output in format CAP=VAL, not CAP+VAL. --- diff --git a/tests/capabs_raw01.at b/tests/capabs_raw01.at index f9b97736..a1d94116 100644 --- a/tests/capabs_raw01.at +++ b/tests/capabs_raw01.at @@ -44,10 +44,11 @@ rm -rf dir # restore _all_ xattrs (not just the user.* domain) tar --xattrs --xattrs-include='*' -xf archive.tar -getcap dir/file +# Newer systems print = instead of + here +getcap dir/file | sed 's/+/=/' ], [0], -[dir/file = cap_chown+ei +[dir/file = cap_chown=ei ]) AT_CLEANUP