On 25/09/2022 00:37, Paul Eggert wrote: > I ran into this problem when attempting to recursively > remove a directory in a filesystem on flaky hardware. > Although the underlying readdir syscall failed with errno == EIO, > rm issued no diagnostic about the I/O error. This looks good. How about the attached to add a NEWS entry, and add DS_EMPTY, DS_NONEMPTY enums to make the code easier to read? thanks, Pádraig