Skip to content
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

Truncate file when opening service manifest for writing #26

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

Firaenix
Copy link
Contributor

When writing a service manifest to disk, the current write_file function doesnt empty the file in memory before writing to it, leading to corrupted manifests if the file on disk is longer than what is about to be written.

@jacderida
Copy link
Collaborator

Yeah, I've seen this bug in the wild--thanks for the fix!

@jacderida jacderida merged commit a749402 into chipsenkbeil:main Jul 13, 2024
12 checks passed
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