From: Jeremy Allison Date: Tue, 29 Sep 2020 20:44:15 +0000 (-0700) Subject: s3: smbd: SMB1 call_nt_transact_rename() never needs wcard bool. X-Git-Tag: talloc-2.3.2~395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf966dc2ca0a96e6ef6e35483dfeebef5e0f9090;p=thirdparty%2Fsamba.git s3: smbd: SMB1 call_nt_transact_rename() never needs wcard bool. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- 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)) {