commit | 744677aaf516e2af60647297db6c0fe2e17cf330 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Apr 04 04:38:26 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Apr 04 04:38:26 2019 +0000 |
tree | 20e02195035cd3c24cb7af41dfcd76093df467c7 | |
parent | 9e34eee481438cd04ff31dbc2349da71d177eecc [diff] | |
parent | 1a6f6feff425edf6076269c0f971675fa41de56c [diff] |
Merge "Open image files in binary mode"
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 827db96..f8f7eb3 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp
@@ -1407,7 +1407,7 @@ int LocalImageSource::OpenFile(const std::string& name) const { auto path = find_item_given_name(name); - return open(path.c_str(), O_RDONLY); + return open(path.c_str(), O_RDONLY | O_BINARY); } static void do_flashall(const std::string& slot_override, bool skip_secondary, bool wipe) {