rpms/samba/F-9 samba-3.2.0pre3-smbspool.patch, NONE, 1.1 samba.spec, 1.151, 1.152

Simo Sorce (simo) fedora-extras-commits at redhat.com
Wed May 21 20:47:34 UTC 2008


Author: simo

Update of /cvs/pkgs/rpms/samba/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19559

Modified Files:
	samba.spec 
Added Files:
	samba-3.2.0pre3-smbspool.patch 
Log Message:
* Wed May 21 2008 Simo Sorce <ssorce at redhat.com> - 3.2.0-1.pre3.12
- impossit made iimpossible to print against Vista and XP SP3 as servers
- resolves: #439154


samba-3.2.0pre3-smbspool.patch:

--- NEW FILE samba-3.2.0pre3-smbspool.patch ---
>From 03a1b791f1ce41f67bf134024bbc8d116b42ea48 Mon Sep 17 00:00:00 2001
From: Jeremy Allison <jra at samba.org>
Date: Wed, 21 May 2008 12:39:08 -0700
Subject: [PATCH] Fix bug #5479, print spool shares require max_xmit to
 be adhered to.
 Jeremy.

---
 source/libsmb/clireadwrite.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

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)) {
-- 
1.5.4.1



Index: samba.spec
===================================================================
RCS file: /cvs/pkgs/rpms/samba/F-9/samba.spec,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -r1.151 -r1.152
--- samba.spec	15 May 2008 14:02:07 -0000	1.151
+++ samba.spec	21 May 2008 20:46:50 -0000	1.152
@@ -1,4 +1,4 @@
-%define main_release 11
+%define main_release 12
 %define samba_version 3.2.0pre3
 %define tdb_version 1.1.1
 %define talloc_version 1.2.0
@@ -49,6 +49,7 @@
 Patch207: samba-3.2.0pre2-roreloc.diff
 Patch208: samba-3.2.0pre3-smbclient.diff
 Patch209: samba-3.2.0pre3-join.diff
+Patch210: samba-3.2.0pre3-smbspool.patch
 
 Requires(pre): samba-common = %{epoch}:%{version}-%{release}
 Requires: pam >= 0:0.64
@@ -258,6 +259,7 @@
 %patch207 -p1 -b .roreloc
 %patch208 -p1 -b .smbclient
 %patch209 -p1 -b .join
+%patch210 -p1 -b .smbspool
 
 mv source/VERSION source/VERSION.orig
 sed -e 's/SAMBA_VERSION_VENDOR_SUFFIX=$/&\"%{release}\"/' < source/VERSION.orig > source/VERSION
@@ -852,6 +854,10 @@
 %{_datadir}/pixmaps/samba/logo-small.png
 
 %changelog
+* Wed May 21 2008 Simo Sorce <ssorce at redhat.com> - 3.2.0-1.pre3.12
+- impossit made iimpossible to print against Vista and XP SP3 as servers
+- resolves: #439154
+
 * Thu May 15 2008 Guenther Deschner <gdeschner at redhat.com> - 3.2.0-1.pre3.11
 - Add "net ads join createcomputer=ou1/ou2/ou3" fix (BZO #5465)
 




More information about the fedora-extras-commits mailing list