summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-28 05:24:21 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-28 05:24:21 +0000
commit87e2a1b9dbd327c23044021085fe9f29bd81e19a (patch)
tree3fd0fdc1c6048fbdf26baf54f260317c6c8b7b13
parentd9eef2fbc231a434c58ca4c25654680cfc40410d (diff)
downloadsamba-87e2a1b9dbd327c23044021085fe9f29bd81e19a.tar.gz
samba-87e2a1b9dbd327c23044021085fe9f29bd81e19a.tar.bz2
samba-87e2a1b9dbd327c23044021085fe9f29bd81e19a.zip
Allow the new modules system to function with builtin vfs modules.
If we don't have a vfs path set, just pass the original file name. In future, we need to seperate the default path as a seperate paramater. Andrew Bartlett (This used to be commit 93c91a2e9d325a4b2d092e144e63f743e6e049bc)
-rw-r--r--source3/smbd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index a8b350b9cd..3dc55cf536 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -334,7 +334,7 @@ BOOL smbd_vfs_init(connection_struct *conn)
handle->handle = NULL;
DLIST_ADD(conn->vfs_private, handle);
vfs_module = NULL;
- if (vfs_path) {
+ if (vfs_path && *vfs_path) {
asprintf(&vfs_module, "%s/%s", vfs_path, vfs_objects[j]);
} else {
asprintf(&vfs_module, "%s", vfs_objects[j]);