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

fix(manifest): Close file before renaming #948

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

craciunoiuc
Copy link
Member

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

Previously the file descriptor would be closed after the file had been moved/renamed. This raises questions as to what would happen if the buffer was not flushed.

Also the return code was not checked.

Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
@craciunoiuc craciunoiuc added kind/fix This PR fixes an issue or bug area/manifest Issue or PR is related to the manifest labels Oct 30, 2023
@nderjung nderjung merged commit f92f5b2 into unikraft:staging Nov 1, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/manifest Issue or PR is related to the manifest kind/fix This PR fixes an issue or bug
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants