bug#81444: chown, chmod, chgrp, chcon, ls: --recursive walk does not ignore ENOENT errors

Paul Eggert <[email protected]> Wed, 22 Jul 2026 16:12:43 -0700
Newsgroups gmane.comp.gnu.core-utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2026-07-22 15:56, P=C3=A1draig Brady wrote:

> Note ENOTDIR is one of the considerations in
> nonexistent_file_errno() in src/remove.c.

That's present in src/remove.c so that 'rm -f a/b' does not complain if=20
'a' is a non-directory; see coreutils commit=20
da9541f18e6985593b73c30d121605e8cff62a7b dated 2006-10-03. That=20
consideration doesn't apply to recursive chown etc., so I think chown=20
etc. shouldn't treat ENOTDIR like ENOENT.

PS. I am sensitive to this issue because today I'm looking into some=20
ENOENT issues in GNU Tar. What a mess that is....