Fix #95411: "//" temp directory prefix causing crash #118872

Closed
Campbell Barton wants to merge 3 commits from ideasman42:pr-temp-dir-sanitize into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

3 Commits

Author SHA1 Message Date
Campbell Barton d225044858 Revert "Check the temporary directory is writable before setting"
This reverts commit 958024b7c6.

I'd rather handle permissions separately from relative paths.
2024-02-29 21:34:40 +11:00
Campbell Barton 958024b7c6 Check the temporary directory is writable before setting 2024-02-29 20:55:18 +11:00
Campbell Barton be28dfad5b Fix #95411: "//" temp directory prefix causing crash
- Skip leading forward slashes when setting the temp directory.
- Add a utility function to set the temporary directory
  which is used for the user preferences & environment variables.
2024-02-29 20:47:33 +11:00