[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-2544-g478a359
Jeremy Allison
jra at samba.org
Wed May 21 19:39:59 GMT 2008
The branch, v3-3-test has been updated
via 478a359edead0677281a3ca4e64db6521941b0f3 (commit)
from 01987778a123f853fccdcb7fe9566143e2d7c490 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 478a359edead0677281a3ca4e64db6521941b0f3
Author: Jeremy Allison <jra at samba.org>
Date: Wed May 21 12:39:08 2008 -0700
Fix bug #5479, print spool shares require max_xmit to
be adhered to.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/libsmb/clireadwrite.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libsmb/clireadwrite.c b/source/libsmb/clireadwrite.c
index 12ba4b7..515471e 100644
--- a/source/libsmb/clireadwrite.c
+++ b/source/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)) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list