rm-rf: refactor rm_rf_children(), split out body of directory iteration loop
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2021 15:30:06 +0000 (16:30 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Jan 2022 19:12:09 +0000 (20:12 +0100)
commitca4a0e7d41f0b2a1fe2f99dbc3763187c16cf7ab
tree79e6501213eaccfd3eab84af47267009b88a4c86
parent9ee300a0b6429b7af73f40edfb2330cbbd7828f3
rm-rf: refactor rm_rf_children(), split out body of directory iteration loop

This splits out rm_rf_children_inner() as body of the loop. We can use
that to implement rm_rf_child() for deleting one specific entry in a
directory.

(cherry picked from commit 1f0fb7d544711248cba34615e43c5a76bc902d74)
src/shared/rm-rf.c
src/shared/rm-rf.h