mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
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 <r.sander@heinlein-support.de> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 2 19:34:11 UTC 2019 on sn-devel-184
This commit is contained in:
parent
b20fd15e04
commit
966fc0dc60
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user