summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2018-12-01 07:31:39 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-12-01 07:31:39 +0100
commit84e9e60b0f250d92ebb5992c1b25cccb47455c08 (patch)
tree30ea5d3400286883fed83ae8bdfa0b053b94815e
parentMerge "ImageGenerator: ignore the duplicate locales" am: 7846823125 am: af36438170 (diff)
parentMerge "Fix ensure_path_mounted_at for fsck_unshare_blocks" am: a37aa092c7 (diff)
downloadandroid_bootable_recovery-84e9e60b0f250d92ebb5992c1b25cccb47455c08.tar
android_bootable_recovery-84e9e60b0f250d92ebb5992c1b25cccb47455c08.tar.gz
android_bootable_recovery-84e9e60b0f250d92ebb5992c1b25cccb47455c08.tar.bz2
android_bootable_recovery-84e9e60b0f250d92ebb5992c1b25cccb47455c08.tar.lz
android_bootable_recovery-84e9e60b0f250d92ebb5992c1b25cccb47455c08.tar.xz
android_bootable_recovery-84e9e60b0f250d92ebb5992c1b25cccb47455c08.tar.zst
android_bootable_recovery-84e9e60b0f250d92ebb5992c1b25cccb47455c08.zip
-rw-r--r--fsck_unshare_blocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck_unshare_blocks.cpp b/fsck_unshare_blocks.cpp
index b653d13ce..acc453cd7 100644
--- a/fsck_unshare_blocks.cpp
+++ b/fsck_unshare_blocks.cpp
@@ -121,7 +121,7 @@ bool do_fsck_unshare_blocks() {
// Temporarily mount system so we can copy e2fsck_static.
std::string system_root = get_system_root();
- bool mounted = ensure_path_mounted_at(system_root.c_str(), "/mnt/system");
+ bool mounted = ensure_path_mounted_at(system_root.c_str(), "/mnt/system") != -1;
partitions.push_back(system_root);
if (!mounted) {