mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 19:34:19 +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:
@@ -454,7 +454,6 @@ rm_fts (FTS *fts, FTSENT *ent, struct rm_options const *x)
|
|||||||
if (x->remove_empty_directories)
|
if (x->remove_empty_directories)
|
||||||
return RM_OK;
|
return RM_OK;
|
||||||
error (0, EISDIR, _("cannot remove %s"), quoteaf (ent->fts_path));
|
error (0, EISDIR, _("cannot remove %s"), quoteaf (ent->fts_path));
|
||||||
mark_ancestor_dirs (ent);
|
|
||||||
ignore_value (fts_read (fts));
|
ignore_value (fts_read (fts));
|
||||||
return RM_ERROR;
|
return RM_ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user