uint32_t ucf_flags = ucf_flags_from_smb_request(req);
NTSTATUS status;
- status = smb2_parse_file_rename_information(mem_ctx,
- conn,
- req,
- pdata,
- total_data,
- fsp,
- smb_fname_src,
- &newname,
- &overwrite);
+ status = smb2_parse_file_rename_information(
+ mem_ctx,
+ conn,
+ req,
+ pdata,
+ total_data,
+ fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH,
+ &newname,
+ &overwrite);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
struct smb_request *req,
const char *pdata,
int total_data,
- files_struct *fsp,
- struct smb_filename *smb_fname_src,
+ bool posix,
char **_newname,
bool *_overwrite)
{
uint32_t len;
NTSTATUS status;
- if (!fsp) {
- return NT_STATUS_INVALID_HANDLE;
- }
-
if (total_data < 20) {
return NT_STATUS_INVALID_PARAMETER;
}
return NT_STATUS_INVALID_PARAMETER;
}
- status = check_path_syntax(newname,
- fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH);
+ status = check_path_syntax(newname, posix);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(newname);
return status;
NTSTATUS status = NT_STATUS_OK;
TALLOC_CTX *ctx = talloc_tos();
- status = smb2_parse_file_rename_information(ctx,
- conn,
- req,
- pdata,
- total_data,
- fsp,
- smb_fname_src,
- &newname,
- &overwrite);
+ status = smb2_parse_file_rename_information(
+ ctx,
+ conn,
+ req,
+ pdata,
+ total_data,
+ fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH,
+ &newname,
+ &overwrite);
if (!NT_STATUS_IS_OK(status)) {
return status;
}