From: Ralph Boehme Date: Mon, 11 May 2020 11:42:39 +0000 (+0200) Subject: smbd: make conflicting_access available to other functions X-Git-Tag: ldb-2.2.0~553 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f37008edaa31c3bc8c9b291dc1af00550ce4f9a;p=thirdparty%2Fsamba.git smbd: make conflicting_access available to other functions The next commit adds more users of conflicting_access. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14375 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index b6a326531aa..98fa1a87203 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1493,17 +1493,18 @@ static bool mask_conflict( Returns True if conflict, False if not. ****************************************************************************/ +static const uint32_t conflicting_access = + FILE_WRITE_DATA| + FILE_APPEND_DATA| + FILE_READ_DATA| + FILE_EXECUTE| + DELETE_ACCESS; + static bool share_conflict(uint32_t e_access_mask, uint32_t e_share_access, uint32_t access_mask, uint32_t share_access) { - const uint32_t conflicting_access = - FILE_WRITE_DATA| - FILE_APPEND_DATA| - FILE_READ_DATA| - FILE_EXECUTE| - DELETE_ACCESS; bool conflict; DBG_DEBUG("existing access_mask = 0x%"PRIx32", "