Skip to content

rm: -r option fails to remove unreadable directory #7033

@jfinkels

Description

@jfinkels

Environment: Ubuntu 20.04, main branch (git commit 00d1866), GNU coreutils v8.30

Steps to reproduce:

mkdir -m a-r -p a/unreadable
rm -rf a

What happens now: uutils rm terminates with an error message, removing neither a nor a/unreadable:

rm: cannot remove 'a': Permission denied

What I expected to happen: GNU rm terminates successfully and removes both directories.

Notes: this is causing a failure in GNU test file tests/rm/empty-inacc.sh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions