smbd: pass private_flags to open_file()
authorRalph Boehme <slow@samba.org>
Mon, 26 Oct 2020 11:31:10 +0000 (12:31 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 09f05a0451bff33b5d5500e823320602249da7f8..2fff31c716f207a06b668613004c620761e308fb 100644 (file)
@@ -1191,6 +1191,7 @@ static NTSTATUS open_file(files_struct *fsp,
                          mode_t unx_mode,
                          uint32_t access_mask, /* client requested access mask. */
                          uint32_t open_access_mask, /* what we're actually using in the open. */
+                         uint32_t private_flags,
                          bool *p_file_created)
 {
        connection_struct *conn = fsp->conn;
@@ -3717,6 +3718,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                             unx_mode,
                             access_mask,
                             open_access_mask,
+                            private_flags,
                             &new_file_created);
        if (NT_STATUS_EQUAL(fsp_open, NT_STATUS_NETWORK_BUSY)) {
                if (file_existed && S_ISFIFO(fsp->fsp_name->st.st_ex_mode)) {