Repository navigation
obs-util: report buffered close errors when copying files - #1538
Merged
Merged
Conversation
zackees
enabled auto-merge
October 20, 2026 17:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
File copy returns success when fclose fails flushing buffered data, leaving a truncated destination.
File copies report buffered close failures instead of success for truncated output.
Split fix from #1462. Fixes #1537.
Validation:
soldr cargo test -p obs-util copy_reports_buffered_close_failure -- --test-threads=1fails on REDbfb0c02dcand passes with the fix. Related tests:soldr cargo test -p obs-util platform_nix -- --test-threads=1.PR CI supplies lint and Tier 2 validation. No public headers or existing C tests changed. Tier 4 does not apply to these utility APIs.
The file-size-limit regression runs only in an isolated child; it cannot truncate files written by other tests.
Additional validation: the full obs-util suite passes with 8 test threads (669 tests plus both doctests), confirming that the isolated file-size-limit regression leaves the parent process unchanged.