summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-06-05 16:13:58 -0700
committerTim Prouty <tprouty@samba.org>2009-06-10 13:13:26 -0700
commitfc2a3b66dbbcc2f5779e1f92d4cb45a77fe8c6e6 (patch)
tree4d656cde3c8e99f491603e09fd3a70726dfcb4d2
parentb152afeadee32c7421db49305a1851cd19cf3c10 (diff)
downloadsamba-fc2a3b66dbbcc2f5779e1f92d4cb45a77fe8c6e6.tar.gz
samba-fc2a3b66dbbcc2f5779e1f92d4cb45a77fe8c6e6.tar.bz2
samba-fc2a3b66dbbcc2f5779e1f92d4cb45a77fe8c6e6.zip
s3: Remove unused stat structs being passed to SMB_VFS_CREATE_FILE
-rw-r--r--source3/smbd/open.c5
-rw-r--r--source3/smbd/posix_acls.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index fdfa99953f..65a1ded1b8 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2601,11 +2601,8 @@ static NTSTATUS open_directory(connection_struct *conn,
NTSTATUS create_directory(connection_struct *conn, struct smb_request *req, const char *directory)
{
NTSTATUS status;
- SMB_STRUCT_STAT sbuf;
files_struct *fsp;
- SET_STAT_INVALID(sbuf);
-
status = SMB_VFS_CREATE_FILE(
conn, /* conn */
req, /* req */
@@ -2623,7 +2620,7 @@ NTSTATUS create_directory(connection_struct *conn, struct smb_request *req, cons
NULL, /* ea_list */
&fsp, /* result */
NULL, /* pinfo */
- &sbuf); /* psbuf */
+ NULL); /* psbuf */
if (NT_STATUS_IS_OK(status)) {
close_file(req, fsp, NORMAL_CLOSE);
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 08b1c8c41a..1029b764b5 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -3465,15 +3465,12 @@ NTSTATUS append_parent_acl(files_struct *fsp,
char *parent_name = NULL;
SEC_ACE *new_ace = NULL;
unsigned int num_aces = pcsd->dacl->num_aces;
- SMB_STRUCT_STAT sbuf;
NTSTATUS status;
int info;
unsigned int i, j;
SEC_DESC *psd = dup_sec_desc(talloc_tos(), pcsd);
bool is_dacl_protected = (pcsd->type & SEC_DESC_DACL_PROTECTED);
- ZERO_STRUCT(sbuf);
-
if (psd == NULL) {
return NT_STATUS_NO_MEMORY;
}
@@ -3499,7 +3496,7 @@ NTSTATUS append_parent_acl(files_struct *fsp,
NULL, /* ea_list */
&parent_fsp, /* result */
&info, /* pinfo */
- &sbuf); /* psbuf */
+ NULL); /* psbuf */
if (!NT_STATUS_IS_OK(status)) {
return status;