1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3: smbd: Remove 'bool has_wild' parameter from unlink_internals().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2021-12-01 13:03:03 -08:00 committed by Ralph Boehme
parent 42985702df
commit 098d63a219
4 changed files with 5 additions and 8 deletions

View File

@ -2042,7 +2042,7 @@ static NTSTATUS driver_unlink_internals(connection_struct *conn,
goto err_out;
}
status = unlink_internals(conn, NULL, 0, smb_fname, false);
status = unlink_internals(conn, NULL, 0, smb_fname);
err_out:
talloc_free(tmp_ctx);
return status;

View File

@ -991,8 +991,7 @@ void reply_ctemp(struct smb_request *req);
NTSTATUS unlink_internals(connection_struct *conn,
struct smb_request *req,
uint32_t dirtype,
struct smb_filename *smb_fname,
bool has_wcard);
struct smb_filename *smb_fname);
void reply_unlink(struct smb_request *req);
ssize_t fake_sendfile(struct smbXsrv_connection *xconn, files_struct *fsp,
off_t startpos, size_t nread);

View File

@ -3279,8 +3279,7 @@ static NTSTATUS do_unlink(connection_struct *conn,
NTSTATUS unlink_internals(connection_struct *conn,
struct smb_request *req,
uint32_t dirtype,
struct smb_filename *smb_fname,
bool has_wild)
struct smb_filename *smb_fname)
{
char *fname_dir = NULL;
char *fname_mask = NULL;
@ -3402,7 +3401,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, false);
status = unlink_internals(conn, req, dirtype, smb_fname);
if (!NT_STATUS_IS_OK(status)) {
if (open_was_deferred(req->xconn, req->mid)) {
/* We have re-scheduled this call. */

View File

@ -6517,8 +6517,7 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx,
status = unlink_internals(conn,
req,
FILE_ATTRIBUTE_NORMAL,
smb_fname_new,
false);
smb_fname_new);
if (!NT_STATUS_IS_OK(status)) {
goto out;
}