commit | 61b6c5cdfe844a63bda5ee396d956527534587e9 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Sep 05 21:45:24 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Sep 05 21:45:24 2018 +0000 |
tree | 70f6d78ae132acdc205f0a962ccfbd645e4c37a8 | |
parent | 484f72abbfe390a2017182b101e16f7eb63a2271 [diff] | |
parent | 3ffed21262bef69ee511e933c51c0be17fb61dae [diff] |
Merge "Remove request for read access to partitions."
diff --git a/fastboot/device/utility.cpp b/fastboot/device/utility.cpp index 0157e7f..d78c809 100644 --- a/fastboot/device/utility.cpp +++ b/fastboot/device/utility.cpp
@@ -80,7 +80,7 @@ std::optional<std::string> FindPhysicalPartition(const std::string& name) { std::string path = "/dev/block/by-name/" + name; - if (access(path.c_str(), R_OK | W_OK) < 0) { + if (access(path.c_str(), W_OK) < 0) { return {}; } return path;