From 0a1f8e7de939c7eb71cfa8cc8f8eef4800d00b78 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 24 Sep 2012 16:42:57 -0700 Subject: [PATCH] Add some const to can_delete_file_in_directory(). --- source3/smbd/file_access.c | 2 +- source3/smbd/proto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/file_access.c b/source3/smbd/file_access.c index bd65a709827..1f5ee4f80ca 100644 --- a/source3/smbd/file_access.c +++ b/source3/smbd/file_access.c @@ -87,7 +87,7 @@ bool can_access_file_acl(struct connection_struct *conn, ****************************************************************************/ bool can_delete_file_in_directory(connection_struct *conn, - struct smb_filename *smb_fname) + const struct smb_filename *smb_fname) { TALLOC_CTX *ctx = talloc_tos(); char *dname = NULL; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index e80e01e4258..d6f751175c7 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -301,7 +301,7 @@ bool can_access_file_acl(struct connection_struct *conn, const struct smb_filename *smb_fname, uint32_t access_mask); bool can_delete_file_in_directory(connection_struct *conn, - struct smb_filename *smb_fname); + const struct smb_filename *smb_fname); bool can_access_file_data(connection_struct *conn, const struct smb_filename *smb_fname, uint32 access_mask); -- 2.11.4.GIT