From 87e2a1b9dbd327c23044021085fe9f29bd81e19a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 28 Mar 2003 05:24:21 +0000 Subject: 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) --- source3/smbd/vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit