Skip to content

Conversation

@millenomi
Copy link
Contributor

This fixes an issue that would occur if the filename for a temporary file plus the .tmp. suffix was beyond the maximum path limit, but would be fine without it. This limits the temp filename to a maximum of 31 characters.

There will be follow-ups for other situations where long paths have similar issues, but this one specifically is also going to be nominated for 5.4.x and 5.5.

Fixes https://bugs.swift.org/browse/SR-14823. This is a candidate PR cherry-pick of #3005

… in some cases

This fixes an issue that would occur if the filename for a temporary file plus the .tmp.<coda> suffix was beyond the maximum path limit, but would be fine without it. This limits the temp filename to a maximum of 31 characters.

There will be follow-ups for other situations where long paths have similar issues, but this one specifically is also going to be nominated for 5.4.x and 5.5.

Fixes <https://bugs.swift.org/browse/SR-14823>.
@millenomi
Copy link
Contributor Author

@swift-ci please test

@millenomi
Copy link
Contributor Author

cc @parkera This will be merged in release/5.5.

@millenomi millenomi merged commit a1991ab into swiftlang:release/5.5 Jul 13, 2021
@millenomi millenomi deleted the pr/sr-14823-5.5 branch July 13, 2021 19:54
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