From 0c2f2a6b4234afd6e4f4466bf710bd7dfb6ecc08 Mon Sep 17 00:00:00 2001 From: Robert Sander Date: Thu, 2 May 2019 11:20:44 -0700 Subject: [PATCH] s3: modules: ceph: use current working directory instead of share path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG: https://bugzilla.samba.org/show_bug.cgi?id=13918 Signed-off-by: Robert Sander Reviewed-by: Jeremy Allison Reviewed-by: Ralph Böhme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu May 2 19:34:11 UTC 2019 on sn-devel-184 (cherry picked from commit 966fc0dc604299a87e40e7170d80911475317db5) --- source3/modules/vfs_ceph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 190bda8228f..53bc01b5f7f 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -1221,14 +1221,14 @@ static struct smb_filename *cephwrap_realpath(struct vfs_handle_struct *handle, } else if ((len >= 2) && (path[0] == '.') && (path[1] == '/')) { if (len == 2) { r = asprintf(&result, "%s", - handle->conn->connectpath); + handle->conn->cwd_fname->base_name); } else { r = asprintf(&result, "%s/%s", - handle->conn->connectpath, &path[2]); + handle->conn->cwd_fname->base_name, &path[2]); } } else { r = asprintf(&result, "%s/%s", - handle->conn->connectpath, path); + handle->conn->cwd_fname->base_name, path); } if (r < 0) { -- 2.21.0.1020.gf2820cf01a-goog