mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Remove unneeded access check. This is done inside smb_set_file_size().
This commit is contained in:
parent
c27551b163
commit
f5cda7160c
@ -6727,10 +6727,6 @@ static NTSTATUS smb_set_file_end_of_file_info(connection_struct *conn,
|
||||
"file %s to %.0f\n", smb_fname_str_dbg(smb_fname),
|
||||
(double)size));
|
||||
|
||||
if (fsp && !(fsp->access_mask & FILE_WRITE_DATA)) {
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
return smb_set_file_size(conn, req,
|
||||
fsp,
|
||||
smb_fname,
|
||||
|
Loading…
Reference in New Issue
Block a user