From d7b685804507752638ef7572c30428a0fc05118b Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Fri, 30 Nov 2018 15:21:53 -0800 Subject: Fix ensure_path_mounted_at for fsck_unshare_blocks Test: pass Bug: 118634720 Change-Id: Icb2540892bd35659462f56c3883a39759f29eeab --- fsck_unshare_blocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3