mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s3: smbd: Add dirfsp parameter to unlink_internals().
Not yet used but passed to SMB_VFS_CREATE(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
d9f144acb6
commit
0b33ec49e3
@ -2042,7 +2042,7 @@ static NTSTATUS driver_unlink_internals(connection_struct *conn,
|
||||
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;
|
||||
|
@ -973,6 +973,7 @@ void reply_special(struct smbXsrv_connection *xconn, char *inbuf, size_t inbuf_s
|
||||
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);
|
||||
|
@ -2395,7 +2395,7 @@ void reply_unlink(struct smb_request *req)
|
||||
|
||||
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. */
|
||||
|
@ -749,6 +749,7 @@ void reply_special(struct smbXsrv_connection *xconn, char *inbuf, size_t inbuf_s
|
||||
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;
|
||||
@ -844,7 +845,7 @@ NTSTATUS unlink_internals(connection_struct *conn,
|
||||
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 */
|
||||
|
@ -4305,6 +4305,7 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx,
|
||||
status = unlink_internals(conn,
|
||||
req,
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
NULL, /* new_dirfsp */
|
||||
smb_fname_new);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user