Displaying 1 result from an estimated 1 matches for "file_shared_writ".
Did you mean:
file_shared_write
2017 Dec 06
0
Does Samba 4.3.11 support for opening file with “APPEND” mode?
...sion deny". But the ">>"
operation should not fail.
I try to access the file with Win32API CreateFile in append mode,
unfortunately I get code error 5(stands for "Access is Denied"). The
API CreateFile is called as CreateFile("append.txt", FILE_APPEND_DATA,
FILE_SHARED_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE |
FILE_FLAG_POSIX_SEMANTICS, NULL).
When I look into Samba source code, in function smbd_smb2_create_send,
the FILE_FLAG_POSIX_SEMANTICS is removed from in_file_attributes. In
function calculate_open_access_flags, FILE_APPEND_DATA is just treated
as FILE_WRITE...