Skip to content

Conversation

@Byron
Copy link
Contributor

@Byron Byron commented Nov 16, 2022

Previously when creating a temporary file without any random characters
in it, a loop would effectively run once and fail with the conclusion
that a file could not be created because too many temporary files exist
(2_147_483_648).

Now it will return the original failure, which typically is that the
file with the given name already existed.

This can more easily happen on case-insentiive file systems, and the
correct error message helps understanding what went wrong.

See GitoxideLabs/gitoxide#595 for reference.

…xisted, once.

Previously when creating a temporary file without any random characters
in it, a loop would effectively run once and fail with the conclusion
that a file could not be created because too many temporary files exist
(2_147_483_648).

Now it will return the original failure, which typically is that the
file with the given name already existed.

This can more easily happen on case-insentiive file systems, and the
correct error message helps understanding what went wrong.

See GitoxideLabs/gitoxide#595 for reference.
@Stebalien Stebalien merged commit 1c6149d into Stebalien:master Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants