summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-11-04 15:45:13 -0700
committerJeremy Allison <jra@samba.org>2011-11-04 15:45:13 -0700
commit60b741415d9357f11ae1db80f93035058fdbe4e8 (patch)
tree7d0cf3c86e1280627fc35cafe6f562ea364ed2e8 /source3/modules
parent48512193338663df5dc4cd52179bc94337eb7113 (diff)
downloadsamba-60b741415d9357f11ae1db80f93035058fdbe4e8.tar.gz
samba-60b741415d9357f11ae1db80f93035058fdbe4e8.tar.bz2
samba-60b741415d9357f11ae1db80f93035058fdbe4e8.zip
Remove can_access_file_data() - make it use the standard smbd_check_access_rights() instead.
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/onefs_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/onefs_open.c b/source3/modules/onefs_open.c
index dd4eb90b13..d7b2af3544 100644
--- a/source3/modules/onefs_open.c
+++ b/source3/modules/onefs_open.c
@@ -1042,8 +1042,8 @@ NTSTATUS onefs_open_file_ntcreate(connection_struct *conn,
if (((can_access_mask & FILE_WRITE_DATA) &&
!CAN_WRITE(conn)) ||
- !can_access_file_data(conn, smb_fname,
- can_access_mask)) {
+ !NT_STATUS_IS_OK(smbd_check_access_rights(conn,
+ smb_fname, can_access_mask))) {
can_access = False;
}