]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: fix order of smb_fname flags and twrp args in unlink_internals()
authorRalph Boehme <slow@samba.org>
Thu, 15 Oct 2020 17:48:42 +0000 (19:48 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 23 Oct 2020 07:56:32 +0000 (07:56 +0000)
As snapshots are read-only by design, this bug was likely not a real issue so
I'm not creating a BUG for this.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index 51f95f565c0ace29fadcb37a99952f1cc712a029..2c15366172d5f8363548a0fa7b642f236321108c 100644 (file)
@@ -3446,8 +3446,8 @@ NTSTATUS unlink_internals(connection_struct *conn,
                                                p,
                                                NULL,
                                                &smb_fname->st,
-                                               smb_fname->flags,
-                                               smb_fname->twrp);
+                                               smb_fname->twrp,
+                                               smb_fname->flags);
                        if (f == NULL) {
                                TALLOC_FREE(dir_hnd);
                                status = NT_STATUS_NO_MEMORY;