|
@@ -2017,7 +2017,7 @@ renameRetry:
|
|
}
|
|
}
|
|
|
|
|
|
int CIFSSMBRenameOpenFile(const int xid, struct cifsTconInfo *pTcon,
|
|
int CIFSSMBRenameOpenFile(const int xid, struct cifsTconInfo *pTcon,
|
|
- int netfid, char *target_name,
|
|
|
|
|
|
+ int netfid, const char *target_name,
|
|
const struct nls_table *nls_codepage, int remap)
|
|
const struct nls_table *nls_codepage, int remap)
|
|
{
|
|
{
|
|
struct smb_com_transaction2_sfi_req *pSMB = NULL;
|
|
struct smb_com_transaction2_sfi_req *pSMB = NULL;
|
|
@@ -2071,7 +2071,7 @@ int CIFSSMBRenameOpenFile(const int xid, struct cifsTconInfo *pTcon,
|
|
remap);
|
|
remap);
|
|
}
|
|
}
|
|
rename_info->target_name_len = cpu_to_le32(2 * len_of_str);
|
|
rename_info->target_name_len = cpu_to_le32(2 * len_of_str);
|
|
- count = 12 /* sizeof(struct set_file_rename) */ + (2 * len_of_str) + 2;
|
|
|
|
|
|
+ count = 12 /* sizeof(struct set_file_rename) */ + (2 * len_of_str);
|
|
byte_count += count;
|
|
byte_count += count;
|
|
pSMB->DataCount = cpu_to_le16(count);
|
|
pSMB->DataCount = cpu_to_le16(count);
|
|
pSMB->TotalDataCount = pSMB->DataCount;
|
|
pSMB->TotalDataCount = pSMB->DataCount;
|