You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider returning /private/tmp instead of /tmp on macOS with std::env::temp_dir() #99608
The first is a regular directory, the second is a symlink to the first. This can lead to software failing in strange and unexpected ways (especially during testing, with the tempfile crate or similar) if symlinks are forbidden, e.g. I recently encountered the case with SQLite
Since /tmp -> /private/tmp software that was already working correctly should not start to fail unexpectedly. Software that was failing/had to workaround this will start working correctly.
changed the title [-]Consider returning `/private/tmp` instead of `tmp[/-][+]Consider returning `/private/tmp` instead of `/tmp` on macOS with `std::env::temp_dir()`[/+]on Jul 22, 2022
Activity
[-]Consider returning `/private/tmp` instead of `tmp[/-][+]Consider returning `/private/tmp` instead of `/tmp` on macOS with `std::env::temp_dir()`[/+]env::temp_dir returns /private/tmp on Apple instead while /tmp is
clubby789 commentedon Mar 31, 2023
@rustbot label +T-libs-api +O-macos
edmorley commentedon Nov 13, 2023
See also #100196 and #100824.
Rollup merge of rust-lang#131505 - madsmtm:darwin_user_temp_dir, r=dt…
Rollup merge of rust-lang#131505 - madsmtm:darwin_user_temp_dir, r=dt…
Rollup merge of rust-lang#131505 - madsmtm:darwin_user_temp_dir, r=dt…
Rollup merge of rust-lang#131505 - madsmtm:darwin_user_temp_dir, r=dt…
Rollup merge of rust-lang#131505 - madsmtm:darwin_user_temp_dir, r=dt…
Unrolled build for rust-lang#131505