diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-02-04 21:17:32 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-02-06 08:09:28 +0100 |
commit | b409aacb0aff9ced1a6f703f744bb4f0b6964b88 (patch) | |
tree | 720364066b394d577c7e93a45fc24ec70122e369 /src/volatile-root | |
parent | login/user-runtime-dir: properly check for mount point (diff) | |
download | systemd-b409aacb0aff9ced1a6f703f744bb4f0b6964b88.tar.xz systemd-b409aacb0aff9ced1a6f703f744bb4f0b6964b88.zip |
mountpoint-util: introduce path_is_mount_point_full
Diffstat (limited to 'src/volatile-root')
-rw-r--r-- | src/volatile-root/volatile-root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volatile-root/volatile-root.c b/src/volatile-root/volatile-root.c index 27be7bdf56..9ab9650480 100644 --- a/src/volatile-root/volatile-root.c +++ b/src/volatile-root/volatile-root.c @@ -154,7 +154,7 @@ static int run(int argc, char *argv[]) { if (!IN_SET(m, VOLATILE_YES, VOLATILE_OVERLAY)) return 0; - r = path_is_mount_point(path, NULL, AT_SYMLINK_FOLLOW); + r = path_is_mount_point_full(path, /* root = */ NULL, AT_SYMLINK_FOLLOW); if (r < 0) return log_error_errno(r, "Couldn't determine whether %s is a mount point: %m", path); if (r == 0) |