From: Ralph Boehme Date: Thu, 5 Dec 2024 09:26:59 +0000 (+0100) Subject: smbd: fill fsp_flas.posix_append in open_file_ntcreate() X-Git-Tag: tdb-1.4.13~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=baf1d520044f9d796ad545862572f0e7319dff04;p=thirdparty%2Fsamba.git smbd: fill fsp_flas.posix_append in open_file_ntcreate() This small changes enables the new append-IO machinery. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Jan 7 23:05:57 UTC 2025 on atb-devel-224 --- diff --git a/selftest/knownfail.d/samba.tests.smb3unix b/selftest/knownfail.d/samba.tests.smb3unix deleted file mode 100644 index d6fa705ecbb..00000000000 --- a/selftest/knownfail.d/samba.tests.smb3unix +++ /dev/null @@ -1 +0,0 @@ -^samba.tests.smb3unix.samba.tests.smb3unix.Smb3UnixTests.test_append\(fileserver_smb1\) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 444a7b85fd0..6151441c77c 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3873,6 +3873,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, !(access_mask & FILE_WRITE_DATA))) { flags |= O_APPEND; + fsp->fsp_flags.posix_append = true; } if (!posix_open && !CAN_WRITE(conn)) {