]> arthur.barton.de Git - bup.git/commit
test-meta: use grep -a on xstat/meta
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 19 Nov 2020 20:56:31 +0000 (21:56 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 22 Nov 2020 21:09:50 +0000 (15:09 -0600)
commit6efdc0b06e89827a17297af418eea7b45b6e8d7c
tree1de12673808ec9f899d7f4bd332f1d76e52e3204
parent3a2a997771a1af6722059f15589fc15866d4bc54
test-meta: use grep -a on xstat/meta

xattr data may contain arbitrary bytes, including NUL.
If we use grep on such data without -a, then it just
prints "Binary file (standard input) matches" and we
haven't tested anything.

Use grep -a for the appropriate invocations to avoid
this issue, we only care about ascii lines here.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
t/test-meta.sh