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)
committerCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Thu, 26 Jun 2025 00:44:53 +0000 (21:44 -0300)
commit4a80c575eb32d4cd752cb6d96528f4a1a902b7af
tree9ebe17b93b4c55fe5d92468a66c4e8521105cb96
parent30ca5f2fd4f23a47f60655b5bc48305512ed8716
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