summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-20 03:38:22 +0000
committerTim Potter <tpot@samba.org>1999-04-20 03:38:22 +0000
commitc1d60a9b26ed9a25f974bf1c3e533118fe0af29a (patch)
tree6102b5a300ec1dfda56033399acc3a7192e3eddc /source3
parentb7100673febaaaf37e0875ded640126425be9f8e (diff)
downloadsamba-c1d60a9b26ed9a25f974bf1c3e533118fe0af29a.tar.gz
samba-c1d60a9b26ed9a25f974bf1c3e533118fe0af29a.tar.bz2
samba-c1d60a9b26ed9a25f974bf1c3e533118fe0af29a.zip
Added dummy connect and disconnect VFS operations to avoid the
possibilty of NULL function pointers being called. Changed arguments to fsync() function to break dependency on connection_struct. (This used to be commit f6d0b55e92cc5250dc65f65c8689bf96cf7001df)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/vfs-wrap.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/source3/smbd/vfs-wrap.c b/source3/smbd/vfs-wrap.c
index 990e931adf..2e25a2540b 100644
--- a/source3/smbd/vfs-wrap.c
+++ b/source3/smbd/vfs-wrap.c
@@ -21,6 +21,21 @@
#include "includes.h"
+/* We don't want to have NULL function pointers lying around. Someone
+ is sure to try and execute them. These stubs are used to prevent
+ this possibility. */
+
+int vfswrap_dummy_connect(struct vfs_connection_struct *conn, char *service,
+ char *user)
+{
+ /* Do nothing */
+}
+
+void vfswrap_dummy_disconnect(void)
+{
+ /* Do nothing a bit more */
+}
+
/* Disk operations */
SMB_BIG_UINT vfswrap_disk_free(char *path, SMB_BIG_UINT *bsize,
@@ -124,9 +139,9 @@ int vfswrap_rename(char *old, char *new)
return result;
}
-void vfswrap_sync_file(struct connection_struct *conn, files_struct *fsp)
+void vfswrap_sync_file(int fd)
{
- sys_sync_file(conn, fsp);
+ sys_sync_file(fd);
}
int vfswrap_stat(char *fname, SMB_STRUCT_STAT *sbuf)