Skip to content

rm: -d shows wrong prompt message for inaccessible dir #7309

@jfinkels

Description

@jfinkels

Environment: Ubuntu 24.04, uutils main branch (git commit 0eab0fa), GNU coreutils v9.4

Steps to reproduce:

mkdir -m0 dir
rm -i -d dir

What happens now: uutils rm:

rm: remove write-protected directory 'dir'?

What I expected to happen: GNU rm:

rm: attempt removal of inaccessible directory 'dir'?

Notes: this is causing a failure in the GNU test file tests/rm/empty-inacc.sh. This issue is just about the prompt message. There is another issue #7305 to actually allow the removal.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions