From: Ralph Boehme Date: Tue, 17 Nov 2020 11:08:48 +0000 (+0100) Subject: smbd: unconst fsp arg of check_access_fsp() X-Git-Tag: samba-4.14.0rc1~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3da8af16146b8fb5f73de37013288f947148ed9a;p=thirdparty%2Fsamba.git smbd: unconst fsp arg of check_access_fsp() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index b99f701fd3b..7b790f17fd9 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1183,7 +1183,7 @@ int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf); /* The following definitions come from smbd/trans2.c */ -NTSTATUS check_access_fsp(const struct files_struct *fsp, +NTSTATUS check_access_fsp(struct files_struct *fsp, uint32_t access_mask); uint64_t smb_roundup(connection_struct *conn, uint64_t val); bool samba_private_attr_name(const char *unix_ea_name); diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index caab97915ea..d7a1dca611c 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -94,7 +94,7 @@ static NTSTATUS refuse_symlink(connection_struct *conn, return NT_STATUS_OK; } -NTSTATUS check_access_fsp(const struct files_struct *fsp, +NTSTATUS check_access_fsp(struct files_struct *fsp, uint32_t access_mask) { if (!(fsp->access_mask & access_mask)) {