Files
Karthik Vinayan cf3b6d45ae rm: report permission denied for unreadable subdirectories
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
2026-02-16 15:06:20 +01:00
..