s3: smbd: Reformat definition and callers of can_delete_file_in_directory().
[amitay/samba.git] / source3 / smbd / open.c
index 8383fe1df5c90ccea0f6743bc7223b3d7d430a39..039e9f4786b2a1237b579d2f32aacec176202aed 100644 (file)
@@ -81,7 +81,9 @@ static bool parent_override_delete(connection_struct *conn,
 {
        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;
@@ -3071,7 +3073,9 @@ static NTSTATUS smbd_calculate_maximum_allowed_access(
        *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;
                }
        }