mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Fix bug #5479, print spool shares require max_xmit to
be adhered to.
Jeremy.
(This used to be commit 478a359ede
)
This commit is contained in:
parent
20796bcf57
commit
b04bcefc58
@ -704,7 +704,12 @@ ssize_t cli_write(struct cli_state *cli,
|
||||
/* Only do massive writes if we can do them direct
|
||||
* with no signing or encrypting - not on a pipe. */
|
||||
writesize = CLI_SAMBA_MAX_POSIX_LARGE_WRITEX_SIZE;
|
||||
} else if (cli->capabilities & CAP_LARGE_WRITEX) {
|
||||
} else if ((cli->capabilities & CAP_LARGE_WRITEX) &&
|
||||
(strcmp(cli->dev, "LPT1:") != 0)) {
|
||||
|
||||
/* Printer devices are restricted to max_xmit
|
||||
* writesize in Vista and XPSP3. */
|
||||
|
||||
if (cli->is_samba) {
|
||||
writesize = CLI_SAMBA_MAX_LARGE_WRITEX_SIZE;
|
||||
} else if (!client_is_signing_on(cli)) {
|
||||
|
Loading…
Reference in New Issue
Block a user