mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-07 08:09:37 -04:00
cf3b6d45ae
When rm -rf encounters a subdirectory without read permission, handle_permission_denied attempts unlink_at on it. If that fails with ENOTEMPTY, force mode was silently swallowing the error, causing the parent removal to fail with a misleading "Directory not empty" message instead. Now always reports permission denied when we cannot open a subdirectory and cannot remove it directly. Fixes #10966