From: Rob Browning Date: Tue, 11 Jul 2017 20:53:33 +0000 (-0500) Subject: test-meta: don't try to chattr +T a file X-Git-Tag: 0.30~187 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=1d7893f0601defb360e4c8b7e30b96cf203d7d73 test-meta: don't try to chattr +T a file ...since 'T' only works for directories, and newer kernels actually reject the attempt (as of at least 4.12, and maybe 4.10). Thanks to Mateusz Pavlic for reporting the problem and verifying the fix. Signed-off-by: Rob Browning --- diff --git a/t/test-meta.sh b/t/test-meta.sh index 803b61a..f51b3c8 100755 --- a/t/test-meta.sh +++ b/t/test-meta.sh @@ -707,7 +707,7 @@ if [ "$root_status" = root ]; then ( WVPASS touch "$testfs"/src/foo WVPASS mkdir "$testfs"/src/bar - WVPASS chattr +acdeijstuADST "$testfs"/src/foo + WVPASS chattr +acdeijstuADS "$testfs"/src/foo WVPASS chattr +acdeijstuADST "$testfs"/src/bar (WVPASS cd "$testfs"; WVPASS test-src-create-extract) || exit $? # Test restoration to a limited filesystem (vfat).