Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18b6e9b8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fastboot: Fix fastboot_vendor_boot_img_utils_test mac os compilation"

parents a010a27d 95c90c65
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -73,8 +73,8 @@ Result<uint64_t> FileSize(borrowed_fd fd, std::filesystem::path path) {

// Seek to beginning then read the whole file.
Result<std::string> ReadStartOfFdToString(borrowed_fd fd, std::filesystem::path path) {
    if (lseek64(fd.get(), 0, SEEK_SET) != 0)
        return ErrnoError() << "lseek64(" << path << ", 0, SEEK_SET)";
    if (lseek(fd.get(), 0, SEEK_SET) != 0)
        return ErrnoError() << "lseek(" << path << ", 0, SEEK_SET)";
    std::string content;
    if (!android::base::ReadFdToString(fd, &content)) return ErrnoError() << "read(" << path << ")";
    return content;