From: Jeremy Allison Date: Wed, 21 May 2008 19:39:08 +0000 (-0700) Subject: Fix bug #5479, print spool shares require max_xmit to X-Git-Tag: samba-4.0.0alpha6~801^2~1324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b04bcefc582a5df669a3dc1952e2af85700b2207;p=thirdparty%2Fsamba.git Fix bug #5479, print spool shares require max_xmit to be adhered to. Jeremy. (This used to be commit 478a359edead0677281a3ca4e64db6521941b0f3) --- diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index 12ba4b737fb..515471e0030 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)) {