]> git.ipfire.org Git - thirdparty/systemd.git/commit
mountpoint-util: some tweaks for fd_is_mount_point()
authorMike Yuan <me@yhndnzj.com>
Mon, 20 Jan 2025 20:48:27 +0000 (21:48 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 22 Jan 2025 00:37:09 +0000 (01:37 +0100)
commite2f97c790e33d21676bc8d700cb8e474be9fbea2
tree41f87a33792114203027cc9dc99979a8f4aaebb6
parente5a3127339915a7fd275d04b7fc633510fc91ff3
mountpoint-util: some tweaks for fd_is_mount_point()

- Drop fstat() fallback path now that we assume fdinfo
  is available
- Use at_flags_normalize_nofollow()
- Accept empty path the same way as NULL
- Accept fd being AT_FDCWD and filename being "."
src/basic/mountpoint-util.c
src/test/test-mountpoint-util.c