mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-28 23:59:50 +09:00
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