test: add a testcase that dir_fd_is_root() is not confused by bind mount
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Mar 2023 19:50:08 +0000 (04:50 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Mar 2023 08:49:21 +0000 (09:49 +0100)
commit58dfcc57f25f99fe541d67ef15b6c66dfc40912b
tree8deb2c28b5fd5919fe7c0c521e85d1b2eeac895f
parent77c6bb895a9ff8e4d48450beef6779e08ffde34a
test: add a testcase that dir_fd_is_root() is not confused by bind mount

See the comment in dir_fd_is_root() and
https://github.com/systemd/systemd/pull/26820#issuecomment-1469554966.
src/test/test-fd-util.c