Displaying 1 result from an estimated 1 matches for "file_flag_posix_semantics".
2017 Dec 06
0
Does Samba 4.3.11 support for opening file with “APPEND” mode?
...hould 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_DATA.
So I wonder, samba server maybe not support for opening fi...