Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
uint32_t access_mask,
uint32_t rejected_mask)
{
- if ((access_mask & DELETE_ACCESS) &&
- (rejected_mask & DELETE_ACCESS) &&
- can_delete_file_in_directory(conn,
- dirfsp,
- smb_fname))
- {
- return true;
+ if ((access_mask & DELETE_ACCESS) && (rejected_mask & DELETE_ACCESS)) {
+ bool ok;
+ ok = can_delete_file_in_directory(conn, dirfsp, smb_fname);
+ return ok;
}
+
return false;
}