git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fdf541
)
Fix bug 5901: Default for streams_depot location
author
TAKAHASHI Motonobu
<monyo@samba.gr.jp>
Sun, 16 Nov 2008 12:17:16 +0000
(13:17 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 16 Nov 2008 12:17:16 +0000
(13:17 +0100)
source/modules/vfs_streams_depot.c
patch
|
blob
|
history
diff --git
a/source/modules/vfs_streams_depot.c
b/source/modules/vfs_streams_depot.c
index d8c476f96f4c95cfd1a5f0893b622a76da73a842..e7ecedaaed2b674fea066392f13f7c9c3b44aaff 100644
(file)
--- 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) {