]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: Fix a regression in SMB_VFS_GETWD
authorAnoop C S <anoopcs@samba.org>
Mon, 5 Jan 2026 06:26:03 +0000 (11:56 +0530)
committerAnoop C S <anoopcs@samba.org>
Tue, 6 Jan 2026 06:31:41 +0000 (06:31 +0000)
Previously, commit 701d55846bc48988cd3f353e7555fb170b1fb767 accidentally
removed the statement that copies the current working directory resolved
by the ceph_getwd() call leading to connection problems in Samba‑CephFS
integration.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Tue Jan  6 06:31:41 UTC 2026 on atb-devel-224

source3/modules/vfs_ceph_new.c

index 0c913f3e5b521d2f77cb2731a54d71cacd2ec68e..18d5e678f844c13300fd33fd33b5de73085d5675 100644 (file)
@@ -3518,6 +3518,7 @@ static struct smb_filename *vfs_ceph_getwd(struct vfs_handle_struct *handle,
 
        cwd = config->ceph_getcwd_fn(config->mount);
        DBG_DEBUG("[CEPH] getwd: cwd=%s\n", cwd);
+       result = cp_smb_basename(ctx, cwd);
 out:
        END_PROFILE_X(syscall_getwd);
        return result;