-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
mktemp: treat empty TMPDIR as unset and fallback to /tmp #10566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
Could you please add a test to make sure we don't regress in the future? Thanks |
|
Hi @sylvestre , thanks for taking the time to take a look. I added tests for this behavior, but was only able to test the successful creation locally. Based on my understanding of the thread, usage on windows should still attempt the creation, but fail due to non-existence of Edit: I got a hint based on the windows build from the CI. |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
Hi @sylvestre , I've managed to rectify the issue with windows builds. Android builds were failing as well, as based on some searches, I believe android doesn't have |
temp directory is not located at /tmp
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
The change looks good, the only thing I could think causing issues is that on windows typically the default /tmp folder will not exist but that can be something that can be addressed separately since there is no existing behaviour that we are trying to replicate for windows. |
This should resolve #10189 . Apologies for the duplicate PR, I had made a mistake in the earlier one and closed it.