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.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index cbd1fd6825..2cd83c37f3 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -74,7 +74,10 @@ struct vfs_ops default_vfs_ops = {
vfswrap_fget_nt_acl,
vfswrap_get_nt_acl,
vfswrap_fset_nt_acl,
- vfswrap_set_nt_acl
+ vfswrap_set_nt_acl,
+
+ vfswrap_chmod_acl,
+ vfswrap_fchmod_acl
};
/****************************************************************************
@@ -257,6 +260,13 @@ BOOL vfs_init_custom(connection_struct *conn)
conn->vfs_ops.set_nt_acl = default_vfs_ops.set_nt_acl;
}
+ if (conn->vfs_ops.chmod_acl == NULL) {
+ conn->vfs_ops.chmod_acl = default_vfs_ops.chmod_acl;
+ }
+
+ if (conn->vfs_ops.fchmod_acl == NULL) {
+ conn->vfs_ops.fchmod_acl = default_vfs_ops.fchmod_acl;
+ }
return True;
}
#endif