rpms/cups/devel cups-str3266.patch,NONE,1.1 cups.spec,1.486,1.487
Tim Waugh
twaugh at fedoraproject.org
Tue Jul 28 11:53:09 UTC 2009
- Previous message (by thread): rpms/cups/F-11 cups-str3266.patch,NONE,1.1 cups.spec,1.488,1.489
- Next message (by thread): rpms/lesstif/devel .cvsignore, 1.5, 1.6 lesstif-0.95.0-PutPixel32.patch, 1.1, 1.2 lesstif-0.95.0-XxxxProperty-64bit.patch, 1.2, 1.3 lesstif.spec, 1.27, 1.28 sources, 1.5, 1.6 lesstif-0.95-resource-fix.patch, 1.1, NONE lesstif-0.95-text.patch, 1.1, NONE lesstif-0.95.0-64bitcleanups.patch, 1.1, NONE lesstif-0.95.0-CAN-2005-0605.patch, 1.1, NONE lesstif-0.95.0-accelkeys.patch, 1.1, NONE lesstif-0.95.0-attach-bottom-self.patch, 1.1, NONE lesstif-0.95.0-c++fix.patch, 1.1, NONE lesstif-0.95.0-multilib.patch, 1.1, NONE lesstif-0.95.0-nolibdir.patch, 1.2, NONE lesstif-0.95.0-scroll.patch, 1.1, NONE lesstif-0.95.0-xtungrab-warning.patch, 1.1, NONE lesstif-Makefile.in.diff, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: twaugh
Update of /cvs/pkgs/rpms/cups/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31141
Modified Files:
cups.spec
Added Files:
cups-str3266.patch
Log Message:
* Tue Jul 28 2009 Tim Waugh <twaugh at redhat.com> 1:1.4-0.rc1.12
- Fixed Device ID reporting in the usb backend (STR #3266).
cups-str3266.patch:
ieee1284.c | 13 ++++++++++---
usb-libusb.c | 8 +++++---
2 files changed, 15 insertions(+), 6 deletions(-)
--- NEW FILE cups-str3266.patch ---
diff -up cups-1.4rc1/backend/ieee1284.c.device-id cups-1.4rc1/backend/ieee1284.c
--- cups-1.4rc1/backend/ieee1284.c.device-id 2009-07-18 18:25:38.355769382 +0100
+++ cups-1.4rc1/backend/ieee1284.c 2009-07-18 18:25:43.844894365 +0100
@@ -196,12 +196,19 @@ backendGetDeviceID(
* and then limit the length to the size of our buffer...
*/
- if (length > (device_id_size - 2))
+ if (length > device_id_size)
length = (((unsigned)device_id[1] & 255) << 8) +
((unsigned)device_id[0] & 255);
- if (length > (device_id_size - 2))
- length = device_id_size - 2;
+ if (length > device_id_size)
+ length = device_id_size;
+
+ /*
+ * The length field counts the number of bytes in the string
+ * including the length field itself (2 bytes).
+ */
+
+ length -= 2;
/*
* Copy the device ID text to the beginning of the buffer and
diff -up cups-1.4rc1/backend/usb-libusb.c.device-id cups-1.4rc1/backend/usb-libusb.c
--- cups-1.4rc1/backend/usb-libusb.c.device-id 2009-01-14 19:46:43.000000000 +0000
+++ cups-1.4rc1/backend/usb-libusb.c 2009-07-18 18:25:43.845895048 +0100
@@ -418,12 +418,14 @@ get_device_id(usb_printer_t *printer, /*
* and then limit the length to the size of our buffer...
*/
- if (length > (bufsize - 2))
+ if (length > bufsize)
length = (((unsigned)buffer[1] & 255) << 8) +
((unsigned)buffer[0] & 255);
- if (length > (bufsize - 2))
- length = bufsize - 2;
+ if (length > bufsize)
+ length = bufsize;
+
+ length -= 2;
/*
* Copy the device ID text to the beginning of the buffer and
Index: cups.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cups/devel/cups.spec,v
retrieving revision 1.486
retrieving revision 1.487
diff -u -p -r1.486 -r1.487
--- cups.spec 24 Jul 2009 19:48:42 -0000 1.486
+++ cups.spec 28 Jul 2009 11:53:09 -0000 1.487
@@ -10,7 +10,7 @@
Summary: Common Unix Printing System
Name: cups
Version: 1.4
-Release: 0.%{pre}.11%{?dist}.1
+Release: 0.%{pre}.12%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source: ftp://ftp.easysw.com/pub/cups/test//cups-%{version}%{?pre}%{?svn}-source.tar.bz2
@@ -56,7 +56,8 @@ Patch29: cups-str3259.patch
Patch30: cups-uri-compat.patch
Patch31: cups-str3254.patch
Patch32: cups-str3253.patch
-Patch33: cups-avahi.patch
+Patch33: cups-str3266.patch
+Patch34: cups-avahi.patch
Patch100: cups-lspp.patch
Epoch: 1
Url: http://www.cups.org/
@@ -210,7 +211,8 @@ module.
%patch30 -p1 -b .uri-compat
%patch31 -p1 -b .str3254
%patch32 -p1 -b .str3253
-#%patch33 -p1 -b .avahi
+%patch33 -p1 -b .str3266
+#%patch34 -p1 -b .avahi
%if %lspp
%patch100 -p1 -b .lspp
@@ -503,6 +505,9 @@ rm -rf $RPM_BUILD_ROOT
%{php_extdir}/phpcups.so
%changelog
+* Tue Jul 28 2009 Tim Waugh <twaugh at redhat.com> 1:1.4-0.rc1.12
+- Fixed Device ID reporting in the usb backend (STR #3266).
+
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:1.4-0.rc1.11.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- Previous message (by thread): rpms/cups/F-11 cups-str3266.patch,NONE,1.1 cups.spec,1.488,1.489
- Next message (by thread): rpms/lesstif/devel .cvsignore, 1.5, 1.6 lesstif-0.95.0-PutPixel32.patch, 1.1, 1.2 lesstif-0.95.0-XxxxProperty-64bit.patch, 1.2, 1.3 lesstif.spec, 1.27, 1.28 sources, 1.5, 1.6 lesstif-0.95-resource-fix.patch, 1.1, NONE lesstif-0.95-text.patch, 1.1, NONE lesstif-0.95.0-64bitcleanups.patch, 1.1, NONE lesstif-0.95.0-CAN-2005-0605.patch, 1.1, NONE lesstif-0.95.0-accelkeys.patch, 1.1, NONE lesstif-0.95.0-attach-bottom-self.patch, 1.1, NONE lesstif-0.95.0-c++fix.patch, 1.1, NONE lesstif-0.95.0-multilib.patch, 1.1, NONE lesstif-0.95.0-nolibdir.patch, 1.2, NONE lesstif-0.95.0-scroll.patch, 1.1, NONE lesstif-0.95.0-xtungrab-warning.patch, 1.1, NONE lesstif-Makefile.in.diff, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list