[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3154-ga512cc8

Volker Lendecke vlendec at samba.org
Sun Nov 16 12:18:02 GMT 2008


The branch, v3-2-test has been updated
       via  a512cc80890a2183d5643d8324fb9dc13fca1e9e (commit)
      from  3fdf541b282805bc59ade8eb9a66c216f035f714 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit a512cc80890a2183d5643d8324fb9dc13fca1e9e
Author: TAKAHASHI Motonobu <monyo at samba.gr.jp>
Date:   Sun Nov 16 13:17:16 2008 +0100

    Fix bug 5901: Default for streams_depot location

-----------------------------------------------------------------------

Summary of changes:
 source/modules/vfs_streams_depot.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/modules/vfs_streams_depot.c b/source/modules/vfs_streams_depot.c
index d8c476f..e7eceda 100644
--- a/source/modules/vfs_streams_depot.c
+++ b/source/modules/vfs_streams_depot.c
@@ -117,9 +117,17 @@ static char *stream_dir(vfs_handle_struct *handle, const char *base_path,
 	struct file_id id;
 	uint8 id_buf[16];
 
+	tmp = talloc_asprintf(talloc_tos(), "%s/.streams", handle->conn->connectpath);
+
+	if (tmp == NULL) {
+		errno = ENOMEM;
+		goto fail;
+	}
+
 	const char *rootdir = lp_parm_const_string(
 		SNUM(handle->conn), "streams_depot", "directory",
-		handle->conn->connectpath);
+		tmp);
+	TALLOC_FREE(tmp);
 
 	if (base_sbuf == NULL) {
 		if (SMB_VFS_NEXT_STAT(handle, base_path, &sbuf) == -1) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list