2009-08-21 16:49:56 +00:00
|
|
|
commit ef891070288cd13aff7c730de7c1baf54dddb90f
|
2009-08-20 15:38:45 +00:00
|
|
|
Author: Jeremy Allison <jra@samba.org>
|
2009-08-21 16:49:56 +00:00
|
|
|
AuthorDate: Fri Aug 21 12:44:54 2009 +0200
|
|
|
|
Commit: Karolin Seeger <kseeger@samba.org>
|
|
|
|
CommitDate: Fri Aug 21 12:46:47 2009 +0200
|
2009-08-20 15:38:45 +00:00
|
|
|
|
|
|
|
Fix Red Hat bugzilla bug : https://bugzilla.redhat.com/show_bug.cgi?id=516165
|
|
|
|
nautilus fails to copy files from an SMB share. This is a show-stopper
|
2009-08-21 16:49:56 +00:00
|
|
|
for 3.4.1. Although gnome-vfs is doing *incredibly* stupid things by asking
|
|
|
|
for a read size of 65535 - this translates on the wire to a 65534 byte read
|
|
|
|
followed by a 1 byte read. Please send this back to the gnome developers that
|
|
|
|
they will ge horrid on the wire performance for this.
|
2009-08-20 15:38:45 +00:00
|
|
|
Jeremy.
|
2009-08-21 16:49:56 +00:00
|
|
|
|
|
|
|
Fixes bug #6649.
|
|
|
|
|
|
|
|
Fixed in master with commit 33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d.
|
2009-08-20 15:38:45 +00:00
|
|
|
---
|
|
|
|
source3/libsmb/clireadwrite.c | 2 +-
|
|
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
|
2009-08-21 16:49:56 +00:00
|
|
|
index f2f447b..b1064ba 100644
|
2009-08-20 15:38:45 +00:00
|
|
|
--- a/source3/libsmb/clireadwrite.c
|
|
|
|
+++ b/source3/libsmb/clireadwrite.c
|
2009-08-21 16:49:56 +00:00
|
|
|
@@ -185,7 +185,7 @@ NTSTATUS cli_read_andx_recv(struct async_req *req, ssize_t *received,
|
|
|
|
buf = (uint8_t *)smb_base(cli_req->inbuf) + SVAL(vwv+6, 0);
|
2009-08-20 15:38:45 +00:00
|
|
|
|
2009-08-21 16:49:56 +00:00
|
|
|
if (trans_oob(smb_len(cli_req->inbuf), SVAL(vwv+6, 0), size)
|
|
|
|
- || (buf < bytes)) {
|
|
|
|
+ || (size && (buf < bytes))) {
|
2009-08-20 15:38:45 +00:00
|
|
|
DEBUG(5, ("server returned invalid read&x data offset\n"));
|
2009-08-21 16:49:56 +00:00
|
|
|
return NT_STATUS_INVALID_NETWORK_RESPONSE;
|
|
|
|
}
|