From bf966dc2ca0a96e6ef6e35483dfeebef5e0f9090 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Sep 2020 13:44:15 -0700 Subject: [PATCH] s3: smbd: SMB1 call_nt_transact_rename() never needs wcard bool. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/nttrans.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index b6ac11f4633..c8c1858785b 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -2029,7 +2029,6 @@ static void call_nt_transact_rename(connection_struct *conn, char *params = *ppparams; char *new_name = NULL; files_struct *fsp = NULL; - bool dest_has_wcard = False; NTSTATUS status; TALLOC_CTX *ctx = talloc_tos(); @@ -2043,25 +2042,23 @@ static void call_nt_transact_rename(connection_struct *conn, return; } if (req->posix_pathnames) { - srvstr_get_path_wcard_posix(ctx, + srvstr_get_path_posix(ctx, params, req->flags2, &new_name, params+4, parameter_count - 4, STR_TERMINATE, - &status, - &dest_has_wcard); + &status); } else { - srvstr_get_path_wcard(ctx, + srvstr_get_path(ctx, params, req->flags2, &new_name, params+4, parameter_count - 4, STR_TERMINATE, - &status, - &dest_has_wcard); + &status); } if (!NT_STATUS_IS_OK(status)) { -- 2.47.3