The Samba-Bugzilla – Attachment 15101 Details for
Bug 13918
vfs_ceph uses wrong directory for realpath call.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for master.
ceph_realpath.txt (text/plain), 1.08 KB, created by
Jeremy Allison
on 2019-04-26 20:49:59 UTC
(
hide
)
Description:
fix for master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2019-04-26 20:49:59 UTC
Size:
1.08 KB
patch
obsolete
>From 8e5c2d08781ce638f261a866f1098675d8d3331d Mon Sep 17 00:00:00 2001 >From: Robert Sander <r.sander@heinlein-support.de> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13918
:
15101
|
15117