summaryrefslogtreecommitdiffstats
path: root/src/shared/mount-setup.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-02-04 21:17:32 +0100
committerMike Yuan <me@yhndnzj.com>2024-02-06 08:09:28 +0100
commitb409aacb0aff9ced1a6f703f744bb4f0b6964b88 (patch)
tree720364066b394d577c7e93a45fc24ec70122e369 /src/shared/mount-setup.c
parentlogin/user-runtime-dir: properly check for mount point (diff)
downloadsystemd-b409aacb0aff9ced1a6f703f744bb4f0b6964b88.tar.xz
systemd-b409aacb0aff9ced1a6f703f744bb4f0b6964b88.zip
mountpoint-util: introduce path_is_mount_point_full
Diffstat (limited to 'src/shared/mount-setup.c')
-rw-r--r--src/shared/mount-setup.c2
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;