]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/mount-util.c
Merge pull request #8554 from poettering/chase-trail-slash
[thirdparty/systemd.git] / src / basic / mount-util.c
index b6e7c9401704eb3f4be94b620af14860b3aea367..1b6d1b3320e7df3b45bc8d2c8b4eb003c45e5692 100644 (file)
@@ -294,7 +294,7 @@ int path_is_mount_point(const char *t, const char *root, int flags) {
          * /bin -> /usr/bin/ and /usr is a mount point, then the parent that we
          * look at needs to be /usr, not /. */
         if (flags & AT_SYMLINK_FOLLOW) {
-                r = chase_symlinks(t, root, 0, &canonical);
+                r = chase_symlinks(t, root, CHASE_TRAIL_SLASH, &canonical);
                 if (r < 0)
                         return r;