| Index: runtime/bin/file_android.cc
|
| diff --git a/runtime/bin/file_android.cc b/runtime/bin/file_android.cc
|
| index 57f765b8654082a12b84579bf0ce907dabcff781..54d86f497b8a53d9f9febd2d57677368a40946a5 100644
|
| --- a/runtime/bin/file_android.cc
|
| +++ b/runtime/bin/file_android.cc
|
| @@ -241,7 +241,8 @@ bool File::Copy(const char* old_path, const char* new_path) {
|
| int bytes = 1;
|
| while (bytes > 0) {
|
| // Loop to ensure we copy everything, and not only up to 2GB.
|
| - bytes = TEMP_FAILURE_RETRY(sendfile(new_fd, old_fd, &offset, -1));
|
| + bytes = TEMP_FAILURE_RETRY(
|
| + sendfile(new_fd, old_fd, &offset, kMaxUint32));
|
| }
|
| if (bytes < 0) {
|
| int e = errno;
|
|
|