]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: add new recurse_dir() tool as replacement for nftw()
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Oct 2021 13:49:25 +0000 (15:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Oct 2021 09:58:26 +0000 (11:58 +0200)
commitb5a07e524e42d2594174ca1a5b72aa4fdb9af94c
tree9e7512966e588e6854ff8d40d12630d9d7351e7a
parentedcd27dcaf6472b394c96df41a0dd309c2ef1254
basic: add new recurse_dir() tool as replacement for nftw()

libc nftw() shows its age a bit, let's replace it with a more moden
infra that is built around openat(), O_PATH, statx(). This makes the
interface less prone to races and cleans up the API a bit adding
substantially more functionality.
src/basic/meson.build
src/basic/recurse-dir.c [new file with mode: 0644]
src/basic/recurse-dir.h [new file with mode: 0644]