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
It looks like e292b95 changed this behavior as part of the fix for #3983. Previously, there was a conditional (!stat.world_writable? or stat.sticky?). The added code excludes the stat.sticky?. /tmpis world writable, but it's also sticky, so previously it was favoring /tmp in the first loop. Now it looks like . is being favored because it's not world writable.
This doesn't seem desirable - /tmp would presumably be preferred when compared to . as a candidate for a temp directory.
As a follow up on this, specifying the various environment variables doesn't work so long as they're world writable. So the only way to specify the temp directory in 188.8.131.52 - 184.108.40.206 is to either create a specific alternate non-world-writable temp directory or hope that the execution context doesn't match the condition.
This explains why I've been seeing temporary files from some tests/specs showing up in cwd. Thanks for the investigation! Maybe someone can come up with a spec for https://github.com/ruby/spec? cc @eregon