]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: vfs: streams_depot. Use conn->connectpath not conn->cwd.
authorJeremy Allison <jra@samba.org>
Fri, 21 Oct 2016 18:04:02 +0000 (11:04 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 2 Jan 2017 10:56:50 +0000 (11:56 +0100)
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

(cherry picked from commit 1366385d1c3e9ac0556e954864e60e72f6906942)

source3/modules/vfs_streams_depot.c

index 59648524789be561136e527de5e968e274e9da12..bb8d5b9c69ae618d9452a8b50716fde485256a09 100644 (file)
@@ -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;