]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: SMB1 call_nt_transact_rename() never needs wcard bool.
authorJeremy Allison <jra@samba.org>
Tue, 29 Sep 2020 20:44:15 +0000 (13:44 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 30 Sep 2020 20:46:41 +0000 (20:46 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/nttrans.c

index b6ac11f4633c0776930351a925ed7d78370b8624..c8c1858785b725a97344ac84d11d247a56ceaf28 100644 (file)
@@ -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)) {