Skip to content

Commit cc678bf

Browse files
committed
fhandle: raise FILEID_IS_DIR in handle_type
Currently FILEID_IS_DIR is raised in fh_flags which is wrong. Raise it in handle->handle_type were it's supposed to be. Link: https://lore.kernel.org/20250624-work-pidfs-fhandle-v2-1-d02a04858fe3@kernel.org Fixes: c374196 ("fs: name_to_handle_at() support for "explicit connectable" file handles") Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Cc: stable@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent f077638 commit cc678bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/fhandle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static long do_sys_name_to_handle(const struct path *path,
8888
if (fh_flags & EXPORT_FH_CONNECTABLE) {
8989
handle->handle_type |= FILEID_IS_CONNECTABLE;
9090
if (d_is_dir(path->dentry))
91-
fh_flags |= FILEID_IS_DIR;
91+
handle->handle_type |= FILEID_IS_DIR;
9292
}
9393
retval = 0;
9494
}

0 commit comments

Comments
 (0)