This came from delete_on_close handling which was factored out.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
static NTSTATUS open_mode_check(connection_struct *conn,
struct share_mode_lock *lck,
static NTSTATUS open_mode_check(connection_struct *conn,
struct share_mode_lock *lck,
uint32 access_mask,
uint32 share_access,
uint32 create_options,
uint32 access_mask,
uint32 share_access,
uint32 create_options,
return NT_STATUS_SHARING_VIOLATION;
}
return NT_STATUS_SHARING_VIOLATION;
}
- status = open_mode_check(conn, lck, fsp->name_hash,
+ status = open_mode_check(conn, lck,
access_mask, share_access,
create_options, &file_existed);
access_mask, share_access,
create_options, &file_existed);
return NT_STATUS_DELETE_PENDING;
}
return NT_STATUS_DELETE_PENDING;
}
- status = open_mode_check(conn, lck, fsp->name_hash,
+ status = open_mode_check(conn, lck,
access_mask, share_access,
create_options, &dir_existed);
access_mask, share_access,
create_options, &dir_existed);