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)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Jul 2021 14:14:37 +0000 (16:14 +0200)
commit1f0fb7d544711248cba34615e43c5a76bc902d74
tree7c37744084aca011b75007d3eb952e5b69959014
parenta4d9c121cc011d3a4feeaa74f54a69de8c9b0b20
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.
src/shared/rm-rf.c
src/shared/rm-rf.h