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/shared/mount-setup.c | |
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 '')
-rw-r--r-- | src/shared/mount-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c index a602f6f1e2..a492e7127f 100644 --- a/src/shared/mount-setup.c +++ b/src/shared/mount-setup.c @@ -177,7 +177,7 @@ static int mount_one(const MountPoint *p, bool relabel) { if (relabel) (void) label_fix(p->where, LABEL_IGNORE_ENOENT|LABEL_IGNORE_EROFS); - r = path_is_mount_point(p->where, NULL, AT_SYMLINK_FOLLOW); + r = path_is_mount_point_full(p->where, /* root = */ NULL, AT_SYMLINK_FOLLOW); if (r < 0 && r != -ENOENT) { log_full_errno(priority, r, "Failed to determine whether %s is a mount point: %m", p->where); return (p->mode & MNT_FATAL) ? r : 0; |