mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-22 15:47:26 +00:00
12 lines
409 B
Diff
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")
|
|
}
|