From: Jeremy Allison Date: Fri, 21 Oct 2016 18:04:02 +0000 (-0700) Subject: s3: vfs: streams_depot. Use conn->connectpath not conn->cwd. X-Git-Tag: samba-4.4.10~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aec65c2333270f497d0ea21bdafc5e2d3676773;p=thirdparty%2Fsamba.git 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 Reviewed-by: Uri Simchoni Autobuild-User(master): Uri Simchoni Autobuild-Date(master): Mon Oct 24 23:52:48 CEST 2016 on sn-devel-144 (cherry picked from commit 1366385d1c3e9ac0556e954864e60e72f6906942) --- diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 59648524789..bb8d5b9c69a 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -128,7 +128,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;