diff options
author | Yifan Hong <elsk@google.com> | 2018-12-19 23:19:52 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-12-19 23:19:52 +0100 |
commit | 82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea (patch) | |
tree | 76db008013c3391d38836ec3b09fd8d5449e5cb9 /recovery.cpp | |
parent | Merge "Add verification before downloading whole package" (diff) | |
parent | roots.cpp: convert to C++ Fstab (diff) | |
download | android_bootable_recovery-82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea.tar android_bootable_recovery-82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea.tar.gz android_bootable_recovery-82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea.tar.bz2 android_bootable_recovery-82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea.tar.lz android_bootable_recovery-82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea.tar.xz android_bootable_recovery-82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea.tar.zst android_bootable_recovery-82fc6ae5b8d118cfa5db0fa8a39625305af7f4ea.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recovery.cpp b/recovery.cpp index de916c633..703923e81 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -294,7 +294,7 @@ bool SetUsbConfig(const std::string& state) { // Returns the selected filename, or an empty string. static std::string browse_directory(const std::string& path, Device* device) { - ensure_path_mounted(path.c_str()); + ensure_path_mounted(path); std::unique_ptr<DIR, decltype(&closedir)> d(opendir(path.c_str()), closedir); if (!d) { @@ -578,7 +578,7 @@ static void choose_recovery_file(Device* device) { log_file += "." + std::to_string(i); } - if (ensure_path_mounted(log_file.c_str()) == 0 && access(log_file.c_str(), R_OK) == 0) { + if (ensure_path_mounted(log_file) == 0 && access(log_file.c_str(), R_OK) == 0) { entries.push_back(std::move(log_file)); } }; @@ -842,7 +842,7 @@ static Device::BuiltinAction prompt_and_wait(Device* device, int status) { } case Device::MOUNT_SYSTEM: // the system partition is mounted at /mnt/system - if (ensure_path_mounted_at(get_system_root().c_str(), "/mnt/system") != -1) { + if (ensure_path_mounted_at(get_system_root(), "/mnt/system") != -1) { ui->Print("Mounted /system.\n"); } break; |