From 8e5c2d08781ce638f261a866f1098675d8d3331d Mon Sep 17 00:00:00 2001 From: Robert Sander Date: Fri, 26 Apr 2019 17:52:58 +0200 Subject: [PATCH] use current working directory instead of share path --- 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 cf45fb4c919..57de8bc891a 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -1206,14 +1206,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.17.1