]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make get_posix_fsp() public
authorVolker Lendecke <vl@samba.org>
Fri, 30 Dec 2022 19:39:54 +0000 (20:39 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 4 Jan 2023 08:54:32 +0000 (08:54 +0000)
This will go static again soon.

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 32e5c33896b6f880f802a88609e32ae8625d58e1..19414bfa7b029c98781717272d6befc302829a53 100644 (file)
@@ -1156,6 +1156,12 @@ bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
                             const uint32_t smb_fmask,
                             int *stat_fflags);
 
+NTSTATUS get_posix_fsp(connection_struct *conn,
+                      struct smb_request *req,
+                      struct smb_filename *smb_fname,
+                      uint32_t access_mask,
+                      files_struct **ret_fsp);
+
 enum perm_type {
        PERM_NEW_FILE,
        PERM_NEW_DIR,
index ced6dde8bf3cab011e82b814aa3a8307b0958dab..eff3e7676decddfbbc1b3038255c1aea201259c3 100644 (file)
@@ -92,11 +92,11 @@ NTSTATUS check_access_fsp(struct files_struct *fsp,
  Utility function to open a fsp for a POSIX handle operation.
 ****************************************************************************/
 
-static NTSTATUS get_posix_fsp(connection_struct *conn,
-                       struct smb_request *req,
-                       struct smb_filename *smb_fname,
-                       uint32_t access_mask,
-                       files_struct **ret_fsp)
+NTSTATUS get_posix_fsp(connection_struct *conn,
+                      struct smb_request *req,
+                      struct smb_filename *smb_fname,
+                      uint32_t access_mask,
+                      files_struct **ret_fsp)
 {
        NTSTATUS status;
        uint32_t create_disposition = FILE_OPEN;