diff --git a/fastboot/device/utility.cpp b/fastboot/device/utility.cpp index 0157e7fd450e3f604c5d8060194891ed0d6070fc..d78c8092259b850d17baba2196ee67624a3497a4 100644 --- a/fastboot/device/utility.cpp +++ b/fastboot/device/utility.cpp @@ -80,7 +80,7 @@ bool OpenPartition(FastbootDevice* device, const std::string& name, PartitionHan 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;