diff options
| author | Jeremy Allison <jra@samba.org> | 2009-08-19 15:33:08 -0700 | 
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2009-08-19 15:33:08 -0700 | 
| commit | 33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d (patch) | |
| tree | 7522b946350c900f50830e686c1c7787b4aea7db /source3 | |
| parent | ecec01cc8f66a4fcf0f8ab855be0ee85b1df579a (diff) | |
| download | samba-33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d.tar.gz samba-33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d.tar.bz2 samba-33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d.zip  | |
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
for 3.4.1 (I'll open a Samba.org bug). 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.
Jeremy.
Diffstat (limited to 'source3')
| -rw-r--r-- | source3/libsmb/clireadwrite.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index d38de19508..0d1f9e515e 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -200,7 +200,7 @@ static void cli_read_andx_done(struct tevent_req *subreq)  	state->buf = (uint8_t *)smb_base(inbuf) + SVAL(vwv+6, 0);  	if (trans_oob(smb_len(inbuf), SVAL(vwv+6, 0), state->received) -	    || (state->buf < bytes)) { +	    || (state->received && (state->buf < bytes))) {  		DEBUG(5, ("server returned invalid read&x data offset\n"));  		tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);  		return;  | 
