summaryrefslogtreecommitdiff
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-04-04 04:38:26 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-04-04 04:38:26 +0000
commit744677aaf516e2af60647297db6c0fe2e17cf330 (patch)
tree20e02195035cd3c24cb7af41dfcd76093df467c7 /fastboot/fastboot.cpp
parent9e34eee481438cd04ff31dbc2349da71d177eecc (diff)
parent1a6f6feff425edf6076269c0f971675fa41de56c (diff)
Merge "Open image files in binary mode"
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r--fastboot/fastboot.cpp2
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) {