]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use "sudo cp" in multiple_rsync.sh 4930/head
authorJohn Spray <john.spray@redhat.com>
Thu, 11 Jun 2015 10:11:44 +0000 (11:11 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 11 Jun 2015 10:11:44 +0000 (11:11 +0100)
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 <john.spray@redhat.com>
qa/workunits/fs/misc/multiple_rsync.sh

index e93e2f4fdfd78e5a2b935728c176473da6655995..36c23cb3f11e719cd8859da08d514c1964576108 100755 (executable)
@@ -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