Skip to content

sort: check merge inputs before creating the output - #17006

Closed
limadog9 wants to merge 1 commit into
uutils:mainfrom
limadog9:sort/merge-missing-input-17004
Closed

limadog9 wants to merge 1 commit into
uutils:mainfrom
limadog9:sort/merge-missing-input-17004

Conversation

@limadog9

Copy link
Copy Markdown
Contributor

When a missing merge input was also the output path, opening the output created an empty file and the merge silently succeeded. Check the inputs first so sort -m reports the missing file and leaves the output path absent.

Closes #17004

@limadog9 limadog9 closed this Nov 30, 2026
@limadog9
limadog9 deleted the sort/merge-missing-input-17004 branch November 30, 2026 03:42
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.

sort -m silently accepts a missing input when it is also the output path

1 participant