1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-11 01:42:17 +02:00

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.
This commit is contained in:
Paul Eggert
2025-10-06 13:36:40 -07:00
parent bae32db8fe
commit 311c04c059

View File

@@ -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;
}