Add const to the smb_filename argument of smbd_check_access_rights().
[ddiss/samba.git] / source3 / smbd / open.c
index bd022ecd59966e9b33f2fa323a03dbf4b0abbaf1..2f79908b626cdad904740f4cde33f818ee39c787 100644 (file)
@@ -44,7 +44,7 @@ struct deferred_open_record {
 ****************************************************************************/
 
 static bool parent_override_delete(connection_struct *conn,
-                                       struct smb_filename *smb_fname,
+                                       const struct smb_filename *smb_fname,
                                        uint32_t access_mask,
                                        uint32_t rejected_mask)
 {
@@ -61,7 +61,7 @@ static bool parent_override_delete(connection_struct *conn,
 ****************************************************************************/
 
 NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
-                               struct smb_filename *smb_fname,
+                               const struct smb_filename *smb_fname,
                                uint32_t access_mask)
 {
        /* Check if we have rights to open. */