Skip to content

[4.2] FileHandle.truncateFile should reposition on truncate #1898

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

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Feb 12, 2019

  • Accepting truncating to any position, not just 0.
  • Reposition to the truncate offset.
  • Darwin throws exceptions on error so we use fatalError() instead of silently failing.

(cherry picked from commit fb1e71b)

- Accepting truncating to any position, not just 0.
- Reposition to the truncate offset.
- Darwin throws exceptions on error so we use fatalError() instead of silently failing.

(cherry picked from commit fb1e71b)
@spevans
Copy link
Contributor Author

spevans commented Feb 12, 2019

@swift-ci test 4.2

@spevans spevans requested a review from weissi February 12, 2019 20:48
@weissi weissi merged commit a5660a5 into swiftlang:swift-4.2-branch Feb 12, 2019
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.

3 participants