Skip to content

install: print the OS error, not its Debug form, when removing the destination fails - #15015

Open
koopatroopa787 wants to merge 1 commit into
uutils:mainfrom
koopatroopa787:install-failed-remove-error-message
Open

koopatroopa787 wants to merge 1 commit into
uutils:mainfrom
koopatroopa787:install-failed-remove-error-message

Conversation

@koopatroopa787

Copy link
Copy Markdown
Contributor

When install could not remove an existing destination file, the message ended with the Rust Debug form of the error (Error: Os { code: 13, kind: PermissionDenied, ... }). Both removal sites now format it with strip_errno, so it reads Error: Permission denied.

Adds a regression test (skipped when running as root).

Closes #15003

Copilot AI balanced review requested due to automatic review settings October 1, 2026 14:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/id/setgid is no longer failing!

@xtqqczze

xtqqczze commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

please rebase for CI

This branch has not been deployed

No deployments
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.

install: "Failed to remove existing file" prints the raw Rust error

3 participants