Skip to content

fix: propagate error on target.Close() in copyFile#581

Open
vedant21-oss wants to merge 1 commit intourunc-dev:mainfrom
vedant21-oss:fix-copyfile-close
Open

fix: propagate error on target.Close() in copyFile#581
vedant21-oss wants to merge 1 commit intourunc-dev:mainfrom
vedant21-oss:fix-copyfile-close

Conversation

@vedant21-oss
Copy link
Copy Markdown

Fixes #566

Properly propagates the error when closing the target file during copyFile to avoid corrupted rootfs if the file fails to close/flush.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for urunc ready!

Name Link
🔨 Latest commit 7e2b204
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/69f11591338e730007b0fc45
😎 Deploy Preview https://deploy-preview-581--urunc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cmainas
Copy link
Copy Markdown
Contributor

cmainas commented Apr 28, 2026

Hello @vedant21-oss ,

thank you for the PR, please read the contribution guide.

Properly propagates the error when closing the target file during
copyFile to avoid corrupted rootfs if the file fails to close/flush.

Fixes: urunc-dev#566
Signed-off-by: vedant21-oss <vedantmalodeofficial@gmail.com>
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.

Bug: Missing Error Propagation on Deferred target.Close() in copyFile leads to Corrupted Rootfs

2 participants