chiark / gitweb /
path: follow symbolic link for parent path (2)
[elogind.git] / src / shared / path-util.c
index 9e2fd6434a988512f9d75ee2c0c3ea2a9535116a..fae5d20ebb0f6528a2312a33f05d1455c0e85481 100644 (file)
@@ -489,7 +489,7 @@ int path_is_mount_point(const char *t, bool allow_symlink) {
                 return r;
 
         h.handle.handle_bytes = MAX_HANDLE_SZ;
-        r = name_to_handle_at(AT_FDCWD, parent, &h.handle, &mount_id_parent, 0);
+        r = name_to_handle_at(AT_FDCWD, parent, &h.handle, &mount_id_parent, AT_SYMLINK_FOLLOW);
         if (r < 0) {
                 /* The parent can't do name_to_handle_at() but the
                  * directory we are interested in can? If so, it must