mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3: vfs: streams_depot. Use conn->connectpath not conn->cwd.
conn->cwd can change over the life of the connection, conn->connectpath remains static. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12387 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Mon Oct 24 23:52:48 CEST 2016 on sn-devel-144
This commit is contained in:
parent
92a0a56c38
commit
1366385d1c
@ -130,7 +130,8 @@ static char *stream_dir(vfs_handle_struct *handle,
|
||||
check_valid = lp_parm_bool(SNUM(handle->conn),
|
||||
"streams_depot", "check_valid", true);
|
||||
|
||||
tmp = talloc_asprintf(talloc_tos(), "%s/.streams", handle->conn->cwd);
|
||||
tmp = talloc_asprintf(talloc_tos(), "%s/.streams",
|
||||
handle->conn->connectpath);
|
||||
|
||||
if (tmp == NULL) {
|
||||
errno = ENOMEM;
|
||||
|
Loading…
x
Reference in New Issue
Block a user