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)
committerMichael Biebl <biebl@debian.org>
Sun, 20 Mar 2022 19:55:25 +0000 (19:55 +0000)
commitbedd4e2c8e2670a89cf2af01a8680277ca738c74
tree082b158c1cc307abf3ab53aed046e1807cd00830
parentf3f0bf745bc769838e3ee4895144f66adce5db73
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)
(cherry picked from commit ca4a0e7d41f0b2a1fe2f99dbc3763187c16cf7ab)
(cherry picked from commit 85ccac3393e78d4bf2776ffb8c3a1d8a2a909a2a)
(cherry picked from commit a87d7ff1a60fe359978e12eb34224255a8f33e27)

Gbp-Pq: Name rm-rf-refactor-rm_rf_children-split-out-body-of-directory.patch
src/basic/rm-rf.c
src/basic/rm-rf.h