summaryrefslogtreecommitdiffstats
path: root/source/smbd/file_access.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-06-17 23:58:49 +0200
committerMichael Adam <obnox@samba.org>2008-06-17 23:58:49 +0200
commit5931540fa1681f026fed42df387d17e43c493c47 (patch)
tree1de95cdee671c77146861fd30e247d0255a75268 /source/smbd/file_access.c
parentb9f6904044889328ded229b7ff04d31218f4fef8 (diff)
downloadsamba-5931540fa1681f026fed42df387d17e43c493c47.tar.gz
samba-5931540fa1681f026fed42df387d17e43c493c47.tar.xz
samba-5931540fa1681f026fed42df387d17e43c493c47.zip
file_access: remove unneeded stat buf parameter from can_access_file_acl().
This is a security descriptor level function only. Michael
Diffstat (limited to 'source/smbd/file_access.c')
-rw-r--r--source/smbd/file_access.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/file_access.c b/source/smbd/file_access.c
index f72d6d12922..aaa114b950c 100644
--- a/source/smbd/file_access.c
+++ b/source/smbd/file_access.c
@@ -24,7 +24,7 @@
#define DBGC_CLASS DBGC_ACLS
bool can_access_file_acl(struct connection_struct *conn,
- const char * fname, SMB_STRUCT_STAT *psbuf,
+ const char * fname,
uint32_t access_mask)
{
bool result;
@@ -114,7 +114,7 @@ bool can_delete_file_in_directory(connection_struct *conn, const char *fname)
/* now for ACL checks */
- return can_access_file_acl(conn, dname, &sbuf, FILE_WRITE_DATA);
+ return can_access_file_acl(conn, dname, FILE_WRITE_DATA);
}
/****************************************************************************
@@ -168,7 +168,7 @@ bool can_access_file_data(connection_struct *conn, const char *fname, SMB_STRUCT
/* now for ACL checks */
- return can_access_file_acl(conn, fname, psbuf, access_mask);
+ return can_access_file_acl(conn, fname, access_mask);
}
/****************************************************************************