]> arthur.barton.de Git - bup.git/commitdiff
test-meta: don't try to chattr +T a file
authorRob Browning <rlb@defaultvalue.org>
Tue, 11 Jul 2017 20:53:33 +0000 (15:53 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 11 Jul 2017 20:53:38 +0000 (15:53 -0500)
...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 <rlb@defaultvalue.org>
t/test-meta.sh

index 803b61af090fa09c1b31f566488fc9501048b742..f51b3c812c32f0655cc93e2cb2fe8be0a10d3b29 100755 (executable)
@@ -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).