Not yet used but passed to SMB_VFS_CREATE().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
goto err_out;
}
- status = unlink_internals(conn, NULL, 0, smb_fname);
+ status = unlink_internals(conn, NULL, 0, NULL, smb_fname);
err_out:
talloc_free(tmp_ctx);
return status;
NTSTATUS unlink_internals(connection_struct *conn,
struct smb_request *req,
uint32_t dirtype,
+ struct files_struct *dirfsp,
struct smb_filename *smb_fname);
ssize_t fake_sendfile(struct smbXsrv_connection *xconn, files_struct *fsp,
off_t startpos, size_t nread);
DEBUG(3,("reply_unlink : %s\n", smb_fname_str_dbg(smb_fname)));
- status = unlink_internals(conn, req, dirtype, smb_fname);
+ status = unlink_internals(conn, req, dirtype, NULL, smb_fname);
if (!NT_STATUS_IS_OK(status)) {
if (open_was_deferred(req->xconn, req->mid)) {
/* We have re-scheduled this call. */
NTSTATUS unlink_internals(connection_struct *conn,
struct smb_request *req,
uint32_t dirtype,
+ struct files_struct *dirfsp,
struct smb_filename *smb_fname)
{
uint32_t fattr;
status = SMB_VFS_CREATE_FILE
(conn, /* conn */
req, /* req */
- NULL, /* dirfsp */
+ dirfsp, /* dirfsp */
smb_fname, /* fname */
DELETE_ACCESS, /* access_mask */
FILE_SHARE_NONE, /* share_access */
status = unlink_internals(conn,
req,
FILE_ATTRIBUTE_NORMAL,
+ NULL, /* new_dirfsp */
smb_fname_new);
if (!NT_STATUS_IS_OK(status)) {
goto out;