bug#81444: chown, chmod, chgrp, chcon, ls: --recursive walk does not ignore ENOENT errors
Pádraig Brady <[email protected]> Thu, 23 Jul 2026 01:13:14 +0100
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 23/07/2026 00:12, Paul Eggert wrote: > On 2026-07-22 15:56, Pádraig 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 > 'a' is a non-directory; see coreutils commit > da9541f18e6985593b73c30d121605e8cff62a7b dated 2006-10-03. That > consideration doesn't apply to recursive chown etc., so I think chown > etc. shouldn't treat ENOTDIR like ENOENT. > > PS. I am sensitive to this issue because today I'm looking into some > ENOENT issues in GNU Tar. What a mess that is.... Ok cool, I'll just consider ENOENT for this so. I won't be at a computer for about 1 day, but I'll push after that. thanks for the review, Padraig