The Samba-Bugzilla – Attachment 3220 Details for
Bug 5326
Print jobs fail above certain size (73-126kB)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.0.x.
look (text/plain), 882 bytes, created by
Jeremy Allison
on 2008-03-27 19:49:05 UTC
(
hide
)
Description:
Patch for 3.0.x.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2008-03-27 19:49:05 UTC
Size:
882 bytes
patch
obsolete
>diff --git a/source/libsmb/clireadwrite.c b/source/libsmb/clireadwrite.c >index dd7ddce..81e9043 100644 >--- a/source/libsmb/clireadwrite.c >+++ b/source/libsmb/clireadwrite.c >@@ -352,10 +352,12 @@ ssize_t cli_write(struct cli_state *cli, > } > > while (received < blocks) { >+ ssize_t size1; > > while ((issued - received < mpx) && (issued < blocks)) { > ssize_t bsent = issued * block; >- ssize_t size1 = MIN(block, size - bsent); >+ >+ size1 = MIN(block, size - bsent); > > if (!cli_issue_write(cli, fnum, offset + bsent, > write_mode, >@@ -374,7 +376,9 @@ ssize_t cli_write(struct cli_state *cli, > break; > > bwritten += SVAL(cli->inbuf, smb_vwv2); >- bwritten += (((int)(SVAL(cli->inbuf, smb_vwv4)))<<16); >+ if (size1 > 0xFFFF) { >+ bwritten += (((int)(SVAL(cli->inbuf, smb_vwv4)))<<16); >+ } > } > > while (received < issued && cli_receive_smb(cli))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
kukks
:
review+
Actions:
View
Attachments on
bug 5326
: 3220 |
7084
|
7085