mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
smbd: Avoid casts in share_conflict()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
This commit is contained in:
parent
a0b0ea8f35
commit
13fb42ac40
@ -1461,28 +1461,29 @@ static bool share_conflict(struct share_mode_entry *entry,
|
|||||||
uint32_t access_mask,
|
uint32_t access_mask,
|
||||||
uint32_t share_access)
|
uint32_t share_access)
|
||||||
{
|
{
|
||||||
DEBUG(10,("share_conflict: entry->access_mask = 0x%x, "
|
DBG_DEBUG("entry->access_mask = 0x%"PRIx32", "
|
||||||
"entry->share_access = 0x%x, "
|
"entry->share_access = 0x%"PRIx32", "
|
||||||
"entry->private_options = 0x%x\n",
|
"entry->private_options = 0x%"PRIx32"\n",
|
||||||
(unsigned int)entry->access_mask,
|
entry->access_mask,
|
||||||
(unsigned int)entry->share_access,
|
entry->share_access,
|
||||||
(unsigned int)entry->private_options));
|
entry->private_options);
|
||||||
|
|
||||||
if (server_id_is_disconnected(&entry->pid)) {
|
if (server_id_is_disconnected(&entry->pid)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(10,("share_conflict: access_mask = 0x%x, share_access = 0x%x\n",
|
DBG_DEBUG("access_mask = 0x%"PRIx32", share_access = 0x%"PRIx32"\n",
|
||||||
(unsigned int)access_mask, (unsigned int)share_access));
|
access_mask,
|
||||||
|
share_access);
|
||||||
|
|
||||||
if ((entry->access_mask & (FILE_WRITE_DATA|
|
if ((entry->access_mask & (FILE_WRITE_DATA|
|
||||||
FILE_APPEND_DATA|
|
FILE_APPEND_DATA|
|
||||||
FILE_READ_DATA|
|
FILE_READ_DATA|
|
||||||
FILE_EXECUTE|
|
FILE_EXECUTE|
|
||||||
DELETE_ACCESS)) == 0) {
|
DELETE_ACCESS)) == 0) {
|
||||||
DEBUG(10,("share_conflict: No conflict due to "
|
DBG_DEBUG("No conflict due to "
|
||||||
"entry->access_mask = 0x%x\n",
|
"entry->access_mask = 0x%"PRIx32"\n",
|
||||||
(unsigned int)entry->access_mask ));
|
entry->access_mask);
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1491,9 +1492,8 @@ static bool share_conflict(struct share_mode_entry *entry,
|
|||||||
FILE_READ_DATA|
|
FILE_READ_DATA|
|
||||||
FILE_EXECUTE|
|
FILE_EXECUTE|
|
||||||
DELETE_ACCESS)) == 0) {
|
DELETE_ACCESS)) == 0) {
|
||||||
DEBUG(10,("share_conflict: No conflict due to "
|
DBG_DEBUG("No conflict due to access_mask = 0x%"PRIx32"\n",
|
||||||
"access_mask = 0x%x\n",
|
access_mask);
|
||||||
(unsigned int)access_mask ));
|
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user