]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-recurse-dir: work around nftw() ignoring symlinks()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 Oct 2023 14:46:56 +0000 (16:46 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 19 Oct 2023 21:40:22 +0000 (22:40 +0100)
commit974959e6f6352b76355b76ab550c0e729b2a8c21
tree3b6521628095aa750c6a01a261a6ded1d9d14576
parentf5a747667722e68ed9aad7a6c8ded69706536bf1
test-recurse-dir: work around nftw() ignoring symlinks()

We have a test where we compare the results from nftw() and our own
resurce_dit_at(). nftw() skips a dangling symlink when running under mkosi and
the test fails. I don't understand why nftw() does that, but in our code we
don't need to test and care about the details of nftw(), which we don't use,
outside of the one test, so let's just skip symlinks in the test.

Closes #29603.
src/test/test-recurse-dir.c