]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: set dirfsp in the SMB2 DH reconnect
authorRalph Boehme <slow@samba.org>
Sat, 16 May 2020 06:23:24 +0000 (08:23 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 21 May 2020 05:23:32 +0000 (05:23 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/durable.c

index de4f457b1d2e8f7c354e8916321566e599e8be36..59fd5a3d55b4a31a835cbc74403a77db413ec811 100644 (file)
@@ -761,6 +761,9 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn,
        fsp->close_write_time = nt_time_to_full_timespec(
                cookie.close_write_time);
 
+       /* TODO: real dirfsp... */
+       fsp->dirfsp = fsp->conn->cwd_fsp;
+
        status = fsp_set_smb_fname(fsp, smb_fname);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(lck);