]> git.ipfire.org Git - thirdparty/systemd.git/commit
fd-util: Add path_is_root_at()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 1 Jun 2023 12:26:35 +0000 (14:26 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 6 Jun 2023 12:42:03 +0000 (14:42 +0200)
commit8a65b0b2c945df0c8001299eff7b293efbd55995
treeeec6287c13aa20706371be7b02291fcc3d0e900f
parent6d2fd8df0a355342f5a8049f86d0ac915dd563fb
fd-util: Add path_is_root_at()

A generalization of dir_fd_is_root() that allows passing a path
component.
src/basic/fd-util.c
src/basic/fd-util.h