summaryrefslogtreecommitdiffstats
path: root/source/smbd/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r--source/smbd/service.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 272d54e3baa..07ff2387109 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -523,6 +523,8 @@ connection_struct *make_connection(char *service,char *user,char *password, int
/* Initialise VFS function pointers */
+#if USING_VFS
+
if (*lp_vfsobj(SNUM(conn))) {
#ifdef HAVE_LIBDL
@@ -532,18 +534,16 @@ connection_struct *make_connection(char *service,char *user,char *password, int
if (!vfs_init_custom(conn)) {
return NULL;
}
-#else
+#else /* HAVE_LIBDL */
DEBUG(0, ("No libdl present - cannot use VFS objects\n"));
conn_free(conn);
return NULL;
-#endif
-
- } else {
-
- /* Normal share - initialise with disk access functions */
+#endif /* HAVE_LIBDL */
+ } else /* Normal share - initialise with disk access functions */
+#else /* USING_VFS */
vfs_init_default(conn);
- }
+#endif /* USING_VFS */
/* execute any "root preexec = " line */
if (*lp_rootpreexec(SNUM(conn))) {