diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-04-04 04:38:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-04-04 04:38:26 +0000 |
commit | 744677aaf516e2af60647297db6c0fe2e17cf330 (patch) | |
tree | 20e02195035cd3c24cb7af41dfcd76093df467c7 /fastboot/fastboot.cpp | |
parent | 9e34eee481438cd04ff31dbc2349da71d177eecc (diff) | |
parent | 1a6f6feff425edf6076269c0f971675fa41de56c (diff) |
Merge "Open image files in binary mode"
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 827db9671..f8f7eb36e 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1407,7 +1407,7 @@ bool LocalImageSource::ReadFile(const std::string& name, std::vector<char>* out) 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) { |