From: Volker Lendecke Date: Fri, 30 Dec 2022 15:23:52 +0000 (+0100) Subject: smbd: Make map_info2_flags_to_sbuf() public X-Git-Tag: talloc-2.4.0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=483aa4148093670b08cf9a1cc358dfd7c5982b54;p=thirdparty%2Fsamba.git smbd: Make map_info2_flags_to_sbuf() public Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 4d9ebf1d4ed..32e5c33896b 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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, diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 0b666dcdd9a..c86c1c0b774 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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;