smbd: Make map_info2_flags_to_sbuf() public
authorVolker Lendecke <vl@samba.org>
Fri, 30 Dec 2022 15:23:52 +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 4d9ebf1d4edd815097dc2b593e1f68b598147a8e..32e5c33896b6f880f802a88609e32ae8625d58e1 100644 (file)
@@ -1151,6 +1151,11 @@ NTSTATUS smb_set_file_size(connection_struct *conn,
                           off_t size,
                           bool fail_after_createfile);
 
+bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
+                            const uint32_t smb_fflags,
+                            const uint32_t smb_fmask,
+                            int *stat_fflags);
+
 enum perm_type {
        PERM_NEW_FILE,
        PERM_NEW_DIR,
index 0b666dcdd9a6aa74feee3a825f652cde7b517137..c86c1c0b774696489a2bcc77ffeaea352d9f9d44 100644 (file)
@@ -3152,10 +3152,10 @@ static void map_info2_flags_from_sbuf(const SMB_STRUCT_STAT *psbuf,
        }
 }
 
-static bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
-                               const uint32_t smb_fflags,
-                               const uint32_t smb_fmask,
-                               int *stat_fflags)
+bool map_info2_flags_to_sbuf(const SMB_STRUCT_STAT *psbuf,
+                            const uint32_t smb_fflags,
+                            const uint32_t smb_fmask,
+                            int *stat_fflags)
 {
        uint32_t max_fmask = 0;
        size_t i;