From af445935555dc3fab3cefc52b375dd18b8d9bb4c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 19 May 2010 19:28:26 -0700 Subject: (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client It turns out that the persistent handles are used by the Microsoft redirector to index files on oplock break requests. So even if we don't do durable handles (yet) we must set the persistent handle on create. For now just use the same handle value as we use for volatile. Jeremy. --- source3/smbd/smb2_getinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/smb2_getinfo.c') diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c index d8963f4e9f..547d9dba16 100644 --- a/source3/smbd/smb2_getinfo.c +++ b/source3/smbd/smb2_getinfo.c @@ -97,7 +97,7 @@ NTSTATUS smbd_smb2_request_process_getinfo(struct smbd_smb2_request *req) if (req->compat_chain_fsp) { /* skip check */ - } else if (in_file_id_persistent != 0) { + } else if (in_file_id_persistent != in_file_id_volatile) { return smbd_smb2_request_error(req, NT_STATUS_FILE_CLOSED); } -- cgit