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

Paul Eggert <[email protected]> Wed, 22 Jul 2026 14:34:47 -0700
Newsgroups gmane.comp.gnu.core-utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2026-07-22 12:51, P=C3=A1draig Brady wrote:
+static inline bool
+ignorable_traversal_errno (int errnum)
+{
+  return errnum =3D=3D ENOENT || errnum =3D=3D ENOTDIR;
+}
+

I understand the ENOENT, but why the ENOTDIR? ENOTDIR says something=20
more serious happened than a mere removal while we traversed.