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
With rust 1.85.0, this change was introduced which now results in a user-scoped temporary directory being returned by tempfile when the binary is run as sudo or as a service. Rust 1.84.1 and prior versions always returned /tmp if TMPDIR is unset and now that's changed.
It's likely not a problem for most cases, but I ran into an issue where I was passing the temporary directory to a process that's run as the nobody user which is unable to access the parent user's temp dir.
There may not be anything to change within tempfile. Just raising this issue for visiblity.
The text was updated successfully, but these errors were encountered:
With rust 1.85.0, this change was introduced which now results in a user-scoped temporary directory being returned by
tempfile
when the binary is run assudo
or as a service. Rust 1.84.1 and prior versions always returned/tmp
ifTMPDIR
is unset and now that's changed.It's likely not a problem for most cases, but I ran into an issue where I was passing the temporary directory to a process that's run as the
nobody
user which is unable to access the parent user's temp dir.There may not be anything to change within
tempfile
. Just raising this issue for visiblity.The text was updated successfully, but these errors were encountered: