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

Commit 744677aa authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Open image files in binary mode"

parents 9e34eee4 1a6f6fef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {