static NTSTATUS create_file_unixpath(connection_struct *conn,
struct smb_request *req,
+ struct files_struct **dirfsp,
struct smb_filename *smb_fname,
uint32_t access_mask,
uint32_t share_access,
files_struct *fsp = NULL;
NTSTATUS status;
+ SMB_ASSERT(*dirfsp == conn->cwd_fsp);
+
DBG_DEBUG("create_file_unixpath: access_mask = 0x%x "
"file_attributes = 0x%x, share_access = 0x%x, "
"create_disposition = 0x%x create_options = 0x%x "
/* Open the base file. */
status = create_file_unixpath(conn,
NULL,
+ dirfsp,
smb_fname_base,
0,
FILE_SHARE_READ
status = create_file_unixpath(conn,
req,
+ _dirfsp,
smb_fname,
access_mask,
share_access,