summaryrefslogtreecommitdiff
path: root/source3/smbd/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r--source3/smbd/vfs.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index d76d64684b..895d84d51c 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -65,7 +65,8 @@ struct vfs_ops default_vfs_ops = {
vfswrap_unlink,
vfswrap_chmod,
vfswrap_utime,
- vfswrap_ftruncate
+ vfswrap_ftruncate,
+ vfswrap_lock
};
/****************************************************************************
@@ -210,7 +211,11 @@ BOOL vfs_init_custom(connection_struct *conn)
}
if (conn->vfs_ops.ftruncate == NULL) {
- conn->vfs_ops.ftruncate= default_vfs_ops.ftruncate;
+ conn->vfs_ops.ftruncate = default_vfs_ops.ftruncate;
+ }
+
+ if (conn->vfs_ops.lock == NULL) {
+ conn->vfs_ops.lock = default_vfs_ops.lock;
}
return True;