diff options
author | Jeremy Allison <jra@samba.org> | 2008-05-21 12:39:08 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-05-21 12:39:08 -0700 |
commit | b04bcefc582a5df669a3dc1952e2af85700b2207 (patch) | |
tree | 0effa1b97a14d662c541175ef3e2b803ccedf7e4 | |
parent | 20796bcf57a7f5e1921dc12e0568221f985fe4f2 (diff) | |
download | samba-b04bcefc582a5df669a3dc1952e2af85700b2207.tar.gz samba-b04bcefc582a5df669a3dc1952e2af85700b2207.tar.bz2 samba-b04bcefc582a5df669a3dc1952e2af85700b2207.zip |
Fix bug #5479, print spool shares require max_xmit to
be adhered to.
Jeremy.
(This used to be commit 478a359edead0677281a3ca4e64db6521941b0f3)
-rw-r--r-- | source3/libsmb/clireadwrite.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index 12ba4b737f..515471e003 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -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)) { |