Fix temp dir on Android 10 or below (#1250)

Co-authored-by: Ylarod <me@ylarod.cn>
This commit is contained in:
Nullptr
2024-01-05 14:41:33 +08:00
committed by GitHub
parent 01711b4114
commit 52f5727875
4 changed files with 22 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ pub fn on_post_data_fs() -> Result<()> {
}
// mount temp dir
if let Err(e) = mount::mount_tmpfs(defs::TEMP_DIR) {
if let Err(e) = mount::mount_tmpfs(utils::get_tmp_path()) {
warn!("do temp dir mount failed: {}", e);
}