Skip to content

csplit: include the file name in output-file errors#13138

Open
eyupcanakman wants to merge 1 commit into
uutils:mainfrom
eyupcanakman:fix/csplit-io-error-message
Open

csplit: include the file name in output-file errors#13138
eyupcanakman wants to merge 1 commit into
uutils:mainfrom
eyupcanakman:fix/csplit-io-error-message

Conversation

@eyupcanakman

Copy link
Copy Markdown
Contributor

Closes #13118

csplit leaked the raw OS error when it could not create a split file:

csplit: IO error: Permission denied (os error 13)

GNU reports the file name and a plain message instead:

csplit: xx00: Permission denied

The file-creation error now carries the file name, and the IoError display drops the IO error: prefix and the raw (os error N) code so the other output paths read the same way.

csplit leaked the raw OS error when it could not create a split file,
e.g. `csplit: IO error: Permission denied (os error 13)`. GNU reports the
file name and a plain message: `csplit: xx00: Permission denied`.

The file-creation error now carries the file name, and the `IoError` display
drops the `IO error:` prefix and the raw `(os error N)` code so the other
output paths read the same way.

Closes uutils#13118
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/symlink (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/misc/tty-eof (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/pr/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout-group (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/basenc/bounded-memory is now passing!
Skip an intermittent issue tests/tail/tail-n0f (was skipped on 'main', now failing)

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.

minorbug(csplit): vague error messages

1 participant