Skip to content

install: show backup failure causes#13349

Open
wtcpython wants to merge 1 commit into
uutils:mainfrom
wtcpython:install-show-backup-error
Open

install: show backup failure causes#13349
wtcpython wants to merge 1 commit into
uutils:mainfrom
wtcpython:install-show-backup-error

Conversation

@wtcpython

@wtcpython wtcpython commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #13165.

When the backup target is a directory, install --backup discarded the rename error and reported only a generic backup failure.

Preserve and display the underlying I/O error, matching GNU's diagnostic. strip_errno removes Rust's platform-specific (os error N) suffix.

Add a cross-platform regression test that derives the expected error text from the platform's rename failure.

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/rm/isatty (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/rm/many-dir-entries-vs-OOM is now being skipped but was previously passing.
Congrats! The gnu test tests/tail/tail-n0f is now passing!

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(install): when the backup file is a directory it returns vague error messages

1 participant