1
From 2a9eaf741d8c169b8f06ee6498a6879acc654506 Mon Sep 17 00:00:00 2001
2
From: Jeremy Allison <jra@samba.org>
3
Date: Thu, 11 Nov 2010 09:44:21 -0800
4
Subject: [PATCH] Fix bug #7791 - gvfsd-smb (Gnome vfs) fails to copy files from a SMB share using SMB signing.
6
The underlying problem is that the old code invoked by cli_write() increments
7
cli->mid directly when issuing outstanding writes. This should now be done only
8
in libsmb/clientgen.c to make metze's new signing engine works correctly. Just
9
deleting this code fixes the problem.
13
source3/libsmb/clireadwrite.c | 7 ++-----
14
1 files changed, 2 insertions(+), 5 deletions(-)
16
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
17
index 6342de4..1f5f925 100644
18
--- a/source3/libsmb/clireadwrite.c
19
+++ b/source3/libsmb/clireadwrite.c
20
@@ -704,8 +704,7 @@ static bool cli_issue_write(struct cli_state *cli,
29
bool large_writex = false;
30
@@ -779,8 +778,6 @@ static bool cli_issue_write(struct cli_state *cli,
31
cli_setup_bcc(cli, p+size);
34
- SSVAL(cli->outbuf,smb_mid,cli->mid + i);
36
show_msg(cli->outbuf);
38
/* For direct writes we now need to write the data
39
@@ -829,7 +826,7 @@ ssize_t cli_write(struct cli_state *cli,
40
if (!cli_issue_write(cli, fnum, offset + bsent,