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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index e92235e230..d76d64684b 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -64,7 +64,8 @@ struct vfs_ops default_vfs_ops = {
vfswrap_lstat,
vfswrap_unlink,
vfswrap_chmod,
- vfswrap_utime
+ vfswrap_utime,
+ vfswrap_ftruncate
};
/****************************************************************************
@@ -208,6 +209,10 @@ BOOL vfs_init_custom(connection_struct *conn)
conn->vfs_ops.utime = default_vfs_ops.utime;
}
+ if (conn->vfs_ops.ftruncate == NULL) {
+ conn->vfs_ops.ftruncate= default_vfs_ops.ftruncate;
+ }
+
return True;
}
#endif