diff options
author | Tim Prouty <tprouty@samba.org> | 2009-07-21 09:29:59 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-07-21 12:04:58 -0700 |
commit | 6b49f28592af5c998642bd5d5f76b77c79a22cd7 (patch) | |
tree | 470fda300240a8fe64328a6c17e540e1244c0ea1 /source3/smbd/reply.c | |
parent | 424e7636957f07c044ee24a9bbf650b02291939b (diff) | |
download | samba-6b49f28592af5c998642bd5d5f76b77c79a22cd7.tar.gz samba-6b49f28592af5c998642bd5d5f76b77c79a22cd7.tar.bz2 samba-6b49f28592af5c998642bd5d5f76b77c79a22cd7.zip |
s3: Plumb smb_filename through map_open_params_to_ntcreate
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 46fdd4adde..5924c46cc1 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1760,10 +1760,10 @@ void reply_open(struct smb_request *req) goto out; } - if (!map_open_params_to_ntcreate( - smb_fname->base_name, deny_mode, OPENX_FILE_EXISTS_OPEN, - &access_mask, &share_mode, &create_disposition, - &create_options)) { + if (!map_open_params_to_ntcreate(smb_fname, deny_mode, + OPENX_FILE_EXISTS_OPEN, &access_mask, + &share_mode, &create_disposition, + &create_options)) { reply_nterror(req, NT_STATUS_DOS(ERRDOS, ERRbadaccess)); goto out; } @@ -1931,9 +1931,10 @@ void reply_open_and_X(struct smb_request *req) goto out; } - if (!map_open_params_to_ntcreate( - smb_fname->base_name, deny_mode, smb_ofun, &access_mask, - &share_mode, &create_disposition, &create_options)) { + if (!map_open_params_to_ntcreate(smb_fname, deny_mode, smb_ofun, + &access_mask, &share_mode, + &create_disposition, + &create_options)) { reply_nterror(req, NT_STATUS_DOS(ERRDOS, ERRbadaccess)); goto out; } @@ -6659,8 +6660,8 @@ NTSTATUS copy_file(TALLOC_CTX *ctx, if (!target_is_directory && count) { new_create_disposition = FILE_OPEN; } else { - if (!map_open_params_to_ntcreate(smb_fname_dst_tmp->base_name, - 0, ofun, NULL, NULL, + if (!map_open_params_to_ntcreate(smb_fname_dst_tmp, 0, ofun, + NULL, NULL, &new_create_disposition, NULL)) { status = NT_STATUS_INVALID_PARAMETER; |