Makes future addition of parameter easier to see.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
****************************************************************************/
bool can_delete_file_in_directory(connection_struct *conn,
- const struct smb_filename *smb_fname)
+ const struct smb_filename *smb_fname)
{
TALLOC_CTX *ctx = talloc_tos();
struct smb_filename *smb_fname_parent = NULL;
{
if ((access_mask & DELETE_ACCESS) &&
(rejected_mask & DELETE_ACCESS) &&
- can_delete_file_in_directory(conn, smb_fname)) {
+ can_delete_file_in_directory(conn,
+ smb_fname))
+ {
return true;
}
return false;
*p_access_mask = (access_granted | FILE_READ_ATTRIBUTES);
if (!(access_granted & DELETE_ACCESS)) {
- if (can_delete_file_in_directory(conn, smb_fname)) {
+ if (can_delete_file_in_directory(conn,
+ smb_fname))
+ {
*p_access_mask |= DELETE_ACCESS;
}
}
/* The following definitions come from smbd/file_access.c */
bool can_delete_file_in_directory(connection_struct *conn,
- const struct smb_filename *smb_fname);
+ const struct smb_filename *smb_fname);
bool can_write_to_file(connection_struct *conn,
const struct smb_filename *smb_fname);
bool directory_has_default_acl(connection_struct *conn,