From: Paul Eggert Date: Mon, 6 Oct 2025 20:36:40 +0000 (-0700) Subject: rm: remove redundant mark_ancestor_dirs call X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;ds=inline;p=thirdparty%2Fcoreutils.git rm: remove redundant mark_ancestor_dirs call * src/remove.c (rm_fts): Remove unnecessary call. Since this code is executed only when not recursive, there are no ancestors to mark. --- diff --git a/src/remove.c b/src/remove.c index f50276efd7..86226b1d37 100644 --- a/src/remove.c +++ b/src/remove.c @@ -454,7 +454,6 @@ rm_fts (FTS *fts, FTSENT *ent, struct rm_options const *x) if (x->remove_empty_directories) return RM_OK; error (0, EISDIR, _("cannot remove %s"), quoteaf (ent->fts_path)); - mark_ancestor_dirs (ent); ignore_value (fts_read (fts)); return RM_ERROR; }