From 832f33ad5e80d56789737f30bea7c4dfb0fc136a Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 11 Jun 2015 11:11:44 +0100 Subject: [PATCH] qa: use "sudo cp" in multiple_rsync.sh VirtualBox has some files with weird permissions in its /usr/lib, which was tripping up this usually-safe operation when run as an unprivileged user. Fixes: #11959 Signed-off-by: John Spray --- qa/workunits/fs/misc/multiple_rsync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/workunits/fs/misc/multiple_rsync.sh b/qa/workunits/fs/misc/multiple_rsync.sh index e93e2f4fdfd7..36c23cb3f11e 100755 --- a/qa/workunits/fs/misc/multiple_rsync.sh +++ b/qa/workunits/fs/misc/multiple_rsync.sh @@ -4,7 +4,7 @@ # Populate with some arbitrary files from the local system. Take # a copy to protect against false fails from system updates during test. export PAYLOAD=/tmp/multiple_rsync_payload.$$ -cp -r /usr/lib/ $PAYLOAD +sudo cp -r /usr/lib/ $PAYLOAD set -e -- 2.47.3