summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_streams_depot.c
diff options
context:
space:
mode:
authorTAKAHASHI Motonobu <monyo@samba.gr.jp>2008-11-16 13:17:16 +0100
committerVolker Lendecke <vl@samba.org>2008-11-16 13:18:56 +0100
commite711d7615797c48650bc8159928ab00a68055a6e (patch)
tree59f53528c1123cba63cc77a540c9c3e3a62e7f5e /source3/modules/vfs_streams_depot.c
parent0e553a06ced50bcb947c13a711f59db9e7203eea (diff)
downloadsamba-e711d7615797c48650bc8159928ab00a68055a6e.tar.gz
samba-e711d7615797c48650bc8159928ab00a68055a6e.tar.bz2
samba-e711d7615797c48650bc8159928ab00a68055a6e.zip
Fix bug 5901: Default for streams_depot location
Diffstat (limited to 'source3/modules/vfs_streams_depot.c')
-rw-r--r--source3/modules/vfs_streams_depot.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c
index d8c476f96f..e7ecedaaed 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) {