0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 15:47:26 +00:00
termux-packages/packages/rust/0004-set-TMPDIR.patch
2024-03-27 11:12:06 +08:00

12 lines
409 B
Diff

--- a/library/std/src/sys/pal/unix/os.rs
+++ b/library/std/src/sys/pal/unix/os.rs
@@ -680,7 +680,7 @@
pub fn temp_dir() -> PathBuf {
crate::env::var_os("TMPDIR").map(PathBuf::from).unwrap_or_else(|| {
if cfg!(target_os = "android") {
- PathBuf::from("/data/local/tmp")
+ PathBuf::from("@TERMUX_PREFIX@/tmp")
} else {
PathBuf::from("/tmp")
}