diff options
author | Volker Lendecke <vl@samba.org> | 2011-07-29 16:12:16 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-07-29 16:43:17 +0200 |
commit | 6d67d41444aef527215d985bdcdb0f214de875f9 (patch) | |
tree | 220b0814a6a5ac414c8c49a8cd638d709746f1e7 /source3/smbd/open.c | |
parent | 0b5c4a601a983aab06e4aba158cd9359babd1e71 (diff) | |
download | samba-6d67d41444aef527215d985bdcdb0f214de875f9.tar.gz samba-6d67d41444aef527215d985bdcdb0f214de875f9.tar.bz2 samba-6d67d41444aef527215d985bdcdb0f214de875f9.zip |
s3: We only need base_name in map_open_params_to_ntcreate
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r-- | source3/smbd/open.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index d81c278110..82125832cb 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1339,7 +1339,7 @@ NTSTATUS fcb_or_dos_open(struct smb_request *req, Open a file with a share mode - old openX method - map into NTCreate. ****************************************************************************/ -bool map_open_params_to_ntcreate(const struct smb_filename *smb_fname, +bool map_open_params_to_ntcreate(const char *smb_base_fname, int deny_mode, int open_func, uint32 *paccess_mask, uint32 *pshare_mode, @@ -1355,7 +1355,7 @@ bool map_open_params_to_ntcreate(const struct smb_filename *smb_fname, DEBUG(10,("map_open_params_to_ntcreate: fname = %s, deny_mode = 0x%x, " "open_func = 0x%x\n", - smb_fname_str_dbg(smb_fname), (unsigned int)deny_mode, + smb_base_fname, (unsigned int)deny_mode, (unsigned int)open_func )); /* Create the NT compatible access_mask. */ @@ -1430,7 +1430,7 @@ bool map_open_params_to_ntcreate(const struct smb_filename *smb_fname, case DENY_DOS: private_flags |= NTCREATEX_OPTIONS_PRIVATE_DENY_DOS; - if (is_executable(smb_fname->base_name)) { + if (is_executable(smb_base_fname)) { share_mode = FILE_SHARE_READ|FILE_SHARE_WRITE; } else { if (GET_OPENX_MODE(deny_mode) == DOS_OPEN_RDONLY) { @@ -1455,7 +1455,7 @@ bool map_open_params_to_ntcreate(const struct smb_filename *smb_fname, DEBUG(10,("map_open_params_to_ntcreate: file %s, access_mask = 0x%x, " "share_mode = 0x%x, create_disposition = 0x%x, " "create_options = 0x%x private_flags = 0x%x\n", - smb_fname_str_dbg(smb_fname), + smb_base_fname, (unsigned int)access_mask, (unsigned int)share_mode, (unsigned int)create_disposition, |