]> 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)
committerJule Anger <janger@samba.org>
Thu, 13 Mar 2025 16:03:20 +0000 (16:03 +0000)
commitd26177dcaeb757e01a480ebd7a7a9dd7528ddbad
tree95c6a809d8981aa9f2b5ec73a3c479ab5c4b3d4d
parent8b38092890dc18183ed3190e6731f4a21d341d9e
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>
(cherry picked from commit 9341d7fb466c95ea5aa0643049ce2a1f4183b9d0)
source3/modules/vfs_ceph_new.c