summaryrefslogtreecommitdiff
path: root/source3/smbd/posix_acls.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/posix_acls.c')
-rw-r--r--source3/smbd/posix_acls.c5
1 files changed, 1 insertions, 4 deletions
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;