]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make smb_set_file_disposition_info() public
authorVolker Lendecke <vl@samba.org>
Wed, 28 Dec 2022 23:06:58 +0000 (00:06 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 4 Jan 2023 08:54:32 +0000 (08:54 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/proto.h
source3/smbd/smb2_trans2.c

index cddd584925ed63c9da86ffb40ebf7a850949a29d..755a215b3a955b20e2bc4bd3f8cc81ab700a935c 100644 (file)
@@ -1109,7 +1109,11 @@ char *store_file_unix_basic_info2(connection_struct *conn,
                                  char *pdata,
                                  files_struct *fsp,
                                  const SMB_STRUCT_STAT *psbuf);
-
+NTSTATUS smb_set_file_disposition_info(connection_struct *conn,
+                                      const char *pdata,
+                                      int total_data,
+                                      files_struct *fsp,
+                                      struct smb_filename *smb_fname);
 NTSTATUS refuse_symlink_fsp(const struct files_struct *fsp);
 NTSTATUS check_access_fsp(struct files_struct *fsp,
                          uint32_t access_mask);
index 65db9af5acefbd34d8dcbd92057108a7194664bc..ff95b24017efe9e6939e9d195ec7b82be0b08c16 100644 (file)
@@ -4853,11 +4853,11 @@ static NTSTATUS smb_set_file_full_ea_info(connection_struct *conn,
  Deal with SMB_SET_FILE_DISPOSITION_INFO.
 ****************************************************************************/
 
-static NTSTATUS smb_set_file_disposition_info(connection_struct *conn,
-                               const char *pdata,
-                               int total_data,
-                               files_struct *fsp,
-                               struct smb_filename *smb_fname)
+NTSTATUS smb_set_file_disposition_info(connection_struct *conn,
+                                      const char *pdata,
+                                      int total_data,
+                                      files_struct *fsp,
+                                      struct smb_filename *smb_fname)
 {
        NTSTATUS status = NT_STATUS_OK;
        bool delete_on_close;