The branch, master has been updated
       via  e711d7615797c48650bc8159928ab00a68055a6e (commit)
      from  0e553a06ced50bcb947c13a711f59db9e7203eea (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e711d7615797c48650bc8159928ab00a68055a6e
Author: TAKAHASHI Motonobu <[EMAIL PROTECTED]>
Date:   Sun Nov 16 13:17:16 2008 +0100

    Fix bug 5901: Default for streams_depot location

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

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


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_streams_depot.c 
b/source3/modules/vfs_streams_depot.c
index d8c476f..e7eceda 100644
--- a/source3/modules/vfs_streams_depot.c
+++ b/source3/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

Reply via email to