Only use POSIX O_APPEND flag if the client requested FILE_APPEND_DATA without
FILE_WRITE_DATA.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15751
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
+++ /dev/null
-^samba.tests.smb3unix.samba.tests.smb3unix.Smb3UnixTests.test_copy_chunk_posix\(fileserver_smb1\)
}
#endif /* O_SYNC */
- if (posix_open && (access_mask & FILE_APPEND_DATA)) {
+ if (posix_open &&
+ ((access_mask & FILE_APPEND_DATA) &&
+ !(access_mask & FILE_WRITE_DATA)))
+ {
flags |= O_APPEND;
}