From: Robert Sander Date: Thu, 2 May 2019 18:20:44 +0000 (-0700) Subject: s3: modules: ceph: use current working directory instead of share path X-Git-Tag: tdb-1.4.1~222 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=966fc0dc604299a87e40e7170d80911475317db5;p=thirdparty%2Fsamba.git s3: modules: ceph: use current working directory instead of share path 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 --- 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) {