]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Add some const to can_delete_file_in_directory().
authorJeremy Allison <jra@samba.org>
Mon, 24 Sep 2012 23:42:57 +0000 (16:42 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 28 Sep 2012 06:39:13 +0000 (08:39 +0200)
source3/smbd/file_access.c
source3/smbd/proto.h

index bd65a709827e6ce01c3053ce8de9daccff3ba5b2..1f5ee4f80caac160413409f70575097910b6ff8e 100644 (file)
@@ -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;
index e80e01e4258e5dd84b02c97a4c374d15b64d7c0a..d6f751175c7311db173237fb8ef7001ffac8cdfc 100644 (file)
@@ -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);