diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-29 22:32:24 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-29 22:32:24 +0000 |
commit | c24e6b41ea60ab4bac2fcd19da947851d6df3c7c (patch) | |
tree | f3b2b2e323f02131190892dab2748bc0000c3c6d /source/smbd/service.c | |
parent | 001e9b7b540f04c80ba65c879aaa41acddc86f3e (diff) | |
download | samba-c24e6b41ea60ab4bac2fcd19da947851d6df3c7c.tar.gz samba-c24e6b41ea60ab4bac2fcd19da947851d6df3c7c.tar.xz samba-c24e6b41ea60ab4bac2fcd19da947851d6df3c7c.zip |
Ensured all the system calls in msdfs.c go through the vfs layer.
Added vfs calls to symlink() and readlink() with appropriate configure
checks.
Jeremy.
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r-- | source/smbd/service.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c index 61da72b2e93..0e2c0ff7a1f 100644 --- a/source/smbd/service.c +++ b/source/smbd/service.c @@ -524,28 +524,10 @@ connection_struct *make_connection(char *service,char *user,char *password, int } /* Initialise VFS function pointers */ - if (*lp_vfsobj(SNUM(conn))) { - -#ifdef HAVE_LIBDL - - /* Loadable object file */ - - if (!vfs_init_custom(conn)) { - DEBUG(0, ("vfs_init failed\n")); - conn_free(conn); - return NULL; - } -#else - DEBUG(0, ("No libdl present - cannot use VFS objects\n")); - conn_free(conn); - return NULL; -#endif - - } else { - - /* Normal share - initialise with disk access functions */ - - vfs_init_default(conn); + if (!vfs_init(conn)) { + DEBUG(0, ("vfs_init failed for service %s\n", lp_servicename(SNUM(conn)))); + conn_free(conn); + return NULL; } /* execute any "root preexec = " line */ |