1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

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)
This commit is contained in:
Andrew Bartlett 2003-03-28 05:24:21 +00:00
parent d9eef2fbc2
commit 87e2a1b9db

View File

@ -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]);