summaryrefslogtreecommitdiffstats
path: root/fsck_unshare_blocks.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2018-12-01 00:21:53 +0100
committerYifan Hong <elsk@google.com>2018-12-01 00:22:19 +0100
commitd7b685804507752638ef7572c30428a0fc05118b (patch)
tree9051365ea3c98f9d2a802517e0f81de7501b7fbc /fsck_unshare_blocks.cpp
parentMerge "SYSTEM_ROOT -> get_system_root" (diff)
downloadandroid_bootable_recovery-d7b685804507752638ef7572c30428a0fc05118b.tar
android_bootable_recovery-d7b685804507752638ef7572c30428a0fc05118b.tar.gz
android_bootable_recovery-d7b685804507752638ef7572c30428a0fc05118b.tar.bz2
android_bootable_recovery-d7b685804507752638ef7572c30428a0fc05118b.tar.lz
android_bootable_recovery-d7b685804507752638ef7572c30428a0fc05118b.tar.xz
android_bootable_recovery-d7b685804507752638ef7572c30428a0fc05118b.tar.zst
android_bootable_recovery-d7b685804507752638ef7572c30428a0fc05118b.zip
Diffstat (limited to 'fsck_unshare_blocks.cpp')
-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) {