From d9153818f48e7e2a96aba8c26ef0455e5c32f842 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Tue, 11 Aug 2020 22:43:44 +0200 Subject: [PATCH] since libcap2 2.41 or upstream commit 177cd418, the getcap output format changed --- coverage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coverage.sh b/coverage.sh index 137d6ad..f72c724 100755 --- a/coverage.sh +++ b/coverage.sh @@ -553,12 +553,12 @@ mkdir /tmp/debian-chroot tar --xattrs --xattrs-include='*' --directory /tmp/debian-chroot -xf /tmp/debian-chroot-shifted.tar echo "100000 100000" > expected stat --format="%u %g" /tmp/debian-chroot/bin/ping | diff expected - -echo "/tmp/debian-chroot/bin/ping = cap_net_raw+ep" > expected +echo "/tmp/debian-chroot/bin/ping cap_net_raw=ep" > expected getcap /tmp/debian-chroot/bin/ping | diff expected - echo "0 0" > expected runuser -u user -- $CMD --unshare-helper /usr/sbin/chroot /tmp/debian-chroot stat --format="%u %g" /bin/ping \ | diff expected - -echo "/bin/ping = cap_net_raw+ep" > expected +echo "/bin/ping cap_net_raw=ep" > expected runuser -u user -- $CMD --unshare-helper /usr/sbin/chroot /tmp/debian-chroot getcap /bin/ping \ | diff expected - rm /tmp/debian-chroot.tar /tmp/debian-chroot-shifted.tar /tmp/debian-chroot.txt /tmp/debian-chroot-shiftedback.tar expected