]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph_new: Handle absolute path in vfs_ceph_ll_walk
authorAnoop C S <anoopcs@samba.org>
Mon, 24 Feb 2025 08:30:56 +0000 (14:00 +0530)
committerGünther Deschner <gd@samba.org>
Fri, 7 Mar 2025 17:15:35 +0000 (17:15 +0000)
commit9341d7fb466c95ea5aa0643049ce2a1f4183b9d0
treeb77a9082bf1bf5d68dc00ed45ff93b3cfef0ce2c
parentee1c3e1db9a2d12ba6d9dd24faccf0020b1daf0d
vfs_ceph_new: Handle absolute path in vfs_ceph_ll_walk

It can very well be the case that the incoming path is absolute in
nature which breaks the assumption inside vfs_ceph_ll_walk that it
is within the current working directory. Instead perform a check to
see whether the path includes current working directory path in its
components and accordingly trim it to make it relative in nature.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15818

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/modules/vfs_ceph_new.c