mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
smbd: Simplify smb_set_file_end_of_file_info()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
parent
ee3a7b31e0
commit
aff7a1fde6
@ -5052,8 +5052,7 @@ static NTSTATUS smb_set_file_end_of_file_info(connection_struct *conn,
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
size = IVAL(pdata,0);
|
||||
size |= (((off_t)IVAL(pdata,4)) << 32);
|
||||
size = (off_t)PULL_LE_U64(pdata, 0);
|
||||
DBG_DEBUG("Set end of file info for file %s to %ju\n",
|
||||
smb_fname_str_dbg(smb_fname),
|
||||
(uintmax_t)size);
|
||||
|
Loading…
Reference in New Issue
Block a user