summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-19 07:08:02 +0000
committerJeremy Allison <jra@samba.org>2001-03-19 07:08:02 +0000
commitc7a953a3188ccb6dfbe49ea66304b3d517b0c628 (patch)
treef24e442f81ee263e0981155b1ef6fc1c4f887df8 /source3/smbd
parent62711a9ceb375fef2c0af0f649d8c77eb94483f9 (diff)
downloadsamba-c7a953a3188ccb6dfbe49ea66304b3d517b0c628.tar.gz
samba-c7a953a3188ccb6dfbe49ea66304b3d517b0c628.tar.bz2
samba-c7a953a3188ccb6dfbe49ea66304b3d517b0c628.zip
Added sys_dlopen/sys_dlsym/sys_dlclose.
Jeremy. (This used to be commit 49f0e7e7143f82bce9dfd8b06e9e515bc0869ab7)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/vfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index b8aa290cab..b41e1f27fd 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -105,14 +105,14 @@ BOOL vfs_init_custom(connection_struct *conn)
/* Open object file */
- if ((conn->dl_handle = dlopen(lp_vfsobj(SNUM(conn)), RTLD_NOW | RTLD_GLOBAL)) == NULL) {
+ if ((conn->dl_handle = sys_dlopen(lp_vfsobj(SNUM(conn)), RTLD_NOW | RTLD_GLOBAL)) == NULL) {
DEBUG(0, ("Error opening %s: %s\n", lp_vfsobj(SNUM(conn)), dlerror()));
return False;
}
/* Get handle on vfs_init() symbol */
- init_fptr = (struct vfs_ops *(*)(int *))dlsym(conn->dl_handle, "vfs_init");
+ init_fptr = (struct vfs_ops *(*)(int *))sys_dlsym(conn->dl_handle, "vfs_init");
if (init_fptr == NULL) {
DEBUG(0, ("No vfs_init() symbol found in %s\n",