From 311c04c0596a61761790b1c0a5fa99ec59796e14 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 6 Oct 2025 13:36:40 -0700 Subject: [PATCH] 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. --- src/remove.c | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.47.3