| Index: runtime/bin/file_linux.cc
|
| diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc
|
| index 69dff89a2e811c2300e0247ebd01abe42832a93f..40b73c91f995c4c4f7c7abd8b977f6d1dee0d835 100644
|
| --- a/runtime/bin/file_linux.cc
|
| +++ b/runtime/bin/file_linux.cc
|
| @@ -242,7 +242,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(sendfile64(new_fd, old_fd, &offset, -1));
|
| + bytes = TEMP_FAILURE_RETRY(
|
| + sendfile64(new_fd, old_fd, &offset, kMaxUint32));
|
| }
|
| if (bytes < 0) {
|
| int e = errno;
|
|
|