]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make smb_set_file_size() public
authorVolker Lendecke <vl@samba.org>
Fri, 30 Dec 2022 15:23:27 +0000 (16:23 +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 755a215b3a955b20e2bc4bd3f8cc81ab700a935c..4d9ebf1d4edd815097dc2b593e1f68b598147a8e 100644 (file)
@@ -1143,6 +1143,13 @@ NTSTATUS smb_set_file_time(connection_struct *conn,
                           struct smb_filename *smb_fname,
                           struct smb_file_time *ft,
                           bool setting_write_time);
+NTSTATUS smb_set_file_size(connection_struct *conn,
+                          struct smb_request *req,
+                          files_struct *fsp,
+                          struct smb_filename *smb_fname,
+                          const SMB_STRUCT_STAT *psbuf,
+                          off_t size,
+                          bool fail_after_createfile);
 
 enum perm_type {
        PERM_NEW_FILE,
index 62676b376e5893f98377f3cb8c19866f3ed2d7fb..0b666dcdd9a6aa74feee3a825f652cde7b517137 100644 (file)
@@ -4652,13 +4652,13 @@ static NTSTATUS smb_set_file_dosmode(connection_struct *conn,
  Deal with setting the size from any of the setfilepathinfo functions.
 ****************************************************************************/
 
-static NTSTATUS smb_set_file_size(connection_struct *conn,
-                                 struct smb_request *req,
-                                 files_struct *fsp,
-                                 struct smb_filename *smb_fname,
-                                 const SMB_STRUCT_STAT *psbuf,
-                                 off_t size,
-                                 bool fail_after_createfile)
+NTSTATUS smb_set_file_size(connection_struct *conn,
+                          struct smb_request *req,
+                          files_struct *fsp,
+                          struct smb_filename *smb_fname,
+                          const SMB_STRUCT_STAT *psbuf,
+                          off_t size,
+                          bool fail_after_createfile)
 {
        NTSTATUS status = NT_STATUS_OK;
        files_struct *new_fsp = NULL;