mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3: Remove unused stat structs being passed to SMB_VFS_CREATE_FILE
This commit is contained in:
parent
b152afeade
commit
fc2a3b66db
@ -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 create_directory(connection_struct *conn, struct smb_request *req, const char *directory)
|
||||||
{
|
{
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
SMB_STRUCT_STAT sbuf;
|
|
||||||
files_struct *fsp;
|
files_struct *fsp;
|
||||||
|
|
||||||
SET_STAT_INVALID(sbuf);
|
|
||||||
|
|
||||||
status = SMB_VFS_CREATE_FILE(
|
status = SMB_VFS_CREATE_FILE(
|
||||||
conn, /* conn */
|
conn, /* conn */
|
||||||
req, /* req */
|
req, /* req */
|
||||||
@ -2623,7 +2620,7 @@ NTSTATUS create_directory(connection_struct *conn, struct smb_request *req, cons
|
|||||||
NULL, /* ea_list */
|
NULL, /* ea_list */
|
||||||
&fsp, /* result */
|
&fsp, /* result */
|
||||||
NULL, /* pinfo */
|
NULL, /* pinfo */
|
||||||
&sbuf); /* psbuf */
|
NULL); /* psbuf */
|
||||||
|
|
||||||
if (NT_STATUS_IS_OK(status)) {
|
if (NT_STATUS_IS_OK(status)) {
|
||||||
close_file(req, fsp, NORMAL_CLOSE);
|
close_file(req, fsp, NORMAL_CLOSE);
|
||||||
|
@ -3465,15 +3465,12 @@ NTSTATUS append_parent_acl(files_struct *fsp,
|
|||||||
char *parent_name = NULL;
|
char *parent_name = NULL;
|
||||||
SEC_ACE *new_ace = NULL;
|
SEC_ACE *new_ace = NULL;
|
||||||
unsigned int num_aces = pcsd->dacl->num_aces;
|
unsigned int num_aces = pcsd->dacl->num_aces;
|
||||||
SMB_STRUCT_STAT sbuf;
|
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
int info;
|
int info;
|
||||||
unsigned int i, j;
|
unsigned int i, j;
|
||||||
SEC_DESC *psd = dup_sec_desc(talloc_tos(), pcsd);
|
SEC_DESC *psd = dup_sec_desc(talloc_tos(), pcsd);
|
||||||
bool is_dacl_protected = (pcsd->type & SEC_DESC_DACL_PROTECTED);
|
bool is_dacl_protected = (pcsd->type & SEC_DESC_DACL_PROTECTED);
|
||||||
|
|
||||||
ZERO_STRUCT(sbuf);
|
|
||||||
|
|
||||||
if (psd == NULL) {
|
if (psd == NULL) {
|
||||||
return NT_STATUS_NO_MEMORY;
|
return NT_STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
@ -3499,7 +3496,7 @@ NTSTATUS append_parent_acl(files_struct *fsp,
|
|||||||
NULL, /* ea_list */
|
NULL, /* ea_list */
|
||||||
&parent_fsp, /* result */
|
&parent_fsp, /* result */
|
||||||
&info, /* pinfo */
|
&info, /* pinfo */
|
||||||
&sbuf); /* psbuf */
|
NULL); /* psbuf */
|
||||||
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user