mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3 setfileinfo: Open with FILE_WRITE_DATA when setting the file size
This matches what is outlined here: http://msdn.microsoft.com/en-us/library/ms804363.aspx This is also inline with how winXP/win7 handle this. See RAW-SFILEINFO-END-OF-FILE* in smbtorture4.
This commit is contained in:
parent
b6f972222f
commit
af610a6f26
@ -5578,7 +5578,7 @@ static NTSTATUS smb_set_file_size(connection_struct *conn,
|
||||
req, /* req */
|
||||
0, /* root_dir_fid */
|
||||
smb_fname_tmp, /* fname */
|
||||
FILE_WRITE_ATTRIBUTES, /* access_mask */
|
||||
FILE_WRITE_DATA, /* access_mask */
|
||||
(FILE_SHARE_READ | FILE_SHARE_WRITE | /* share_access */
|
||||
FILE_SHARE_DELETE),
|
||||
FILE_OPEN, /* create_disposition*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user