From 0992cbebeb1bcf1dbda34a03917e25ba75fad046 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 13 Jul 2018 00:42:26 +0100 Subject: test suite: Do not save non-world-readable artifacts Save things to $AUTOPKGTEST_ARTIFACTS without preserving access control information. Works around #903680. Signed-off-by: Ian Jackson --- tests/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lib') diff --git a/tests/lib b/tests/lib index 87dd376..1ddfcea 100644 --- a/tests/lib +++ b/tests/lib @@ -420,7 +420,7 @@ t-save-artifacts () { if [ x"$artifacts" = x ]; then return; fi if [ x"tmp" = x ]; then return; fi : '(((((((((( t-save-artifacts ))))))))))' - cp -a "$tmp"/. "$artifacts"/. + cp -dR --preserve=links,timestamps "$tmp"/. "$artifacts"/. cd "$artifacts"/. find . \( -name \*.tar -o -name \*.sample \) -print0 | \ xargs -0r rm -v -- cgit v1.2.3