summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-10-04 09:58:56 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-04 10:22:10 +0900
commit345efbf137415e9982ab1eaeb87a13300b7182f5 (patch)
tree92215abdbadf36ed75496678756c6e8f79f2987b /tools/lib/python
parent1b1a5eaf09da51c27457b752ac323344bd64493f (diff)
downloadlinux-next-345efbf137415e9982ab1eaeb87a13300b7182f5.tar.gz
linux-next-345efbf137415e9982ab1eaeb87a13300b7182f5.zip
ksmbd: fix durable reconnects for root shares
When a share exports "/", ksmbd_validate_name_reconnect() expects another slash after the share path. For a file at /foo, this rejects the valid reconnect name "foo" even though the file is in the share. Compare the requested name with the rendered file path after its leading slash when the resolved share root is "/". Keep the exact-root/empty-name check and reject rendered paths without an initial slash. Fixes: c8efcc786146 ("ksmbd: add support for durable handles v1/v2") Reported-by: Dairui Zhang <zhangdairui@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions