summaryrefslogtreecommitdiffstats
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2008-11-20 18:55:24 -0800
committerTim Prouty <tprouty@samba.org>2008-12-03 17:51:16 -0800
commit08ce0604757315367f26a2c0869d59dd229c3ffe (patch)
treea37f92a43d5b23af1eed195d39b10a06ecec271e /source3/smbd/open.c
parent2caa4fe08e157a01012b425a68cc25c381d5f354 (diff)
downloadsamba-08ce0604757315367f26a2c0869d59dd229c3ffe.tar.gz
samba-08ce0604757315367f26a2c0869d59dd229c3ffe.tar.xz
samba-08ce0604757315367f26a2c0869d59dd229c3ffe.zip
s3: Modify direct callers of open_file_ntcreate and open_directory to call SMB_VFS_CREATE_FILE
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 989024f553d..62d4827bb25 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2493,14 +2493,24 @@ NTSTATUS create_directory(connection_struct *conn, struct smb_request *req, cons
SET_STAT_INVALID(sbuf);
- status = open_directory(conn, req, directory, &sbuf,
- FILE_READ_ATTRIBUTES, /* Just a stat open */
- FILE_SHARE_NONE, /* Ignored for stat opens */
- FILE_CREATE,
- 0,
- FILE_ATTRIBUTE_DIRECTORY,
- NULL,
- &fsp);
+ status = SMB_VFS_CREATE_FILE(
+ conn, /* conn */
+ req, /* req */
+ 0, /* root_dir_fid */
+ directory, /* fname */
+ false, /* is_dos_path */
+ FILE_READ_ATTRIBUTES, /* access_mask */
+ FILE_SHARE_NONE, /* share_access */
+ FILE_CREATE, /* create_disposition*/
+ FILE_DIRECTORY_FILE, /* create_options */
+ FILE_ATTRIBUTE_DIRECTORY, /* file_attributes */
+ 0, /* oplock_request */
+ 0, /* allocation_size */
+ NULL, /* sd */
+ NULL, /* ea_list */
+ &fsp, /* result */
+ NULL, /* pinfo */
+ &sbuf); /* psbuf */
if (NT_STATUS_IS_OK(status)) {
close_file(req, fsp, NORMAL_CLOSE);