Merge "Do not erase system_other if zero length." into rvc-dev
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc
index ee9c6e3..5ed604a 100644
--- a/dynamic_partition_control_android.cc
+++ b/dynamic_partition_control_android.cc
@@ -547,7 +547,10 @@
const std::string& path) {
Fstab fstab;
if (!ReadFstabFromFile(path, &fstab)) {
- LOG(WARNING) << "Cannot read fstab from " << path;
+ PLOG(WARNING) << "Cannot read fstab from " << path;
+ if (errno == ENOENT) {
+ return false;
+ }
return std::nullopt;
}
for (const auto& entry : fstab) {