- Fixed another LSPP patch problem noted by Erwin Rol.

This commit is contained in:
Tim Waugh 2006-08-24 11:40:19 +00:00
parent d90f3913c7
commit 11192870f4
2 changed files with 10 additions and 8 deletions

View File

@ -2058,8 +2058,8 @@
-$(RMDIR) $(STATEDIR)/certs
-$(RMDIR) $(STATEDIR)
-$(RMDIR) $(SERVERROOT)/ppd
--- cups-1.2.2-8/scheduler/printers.c 2006-08-10 11:43:02.000000000 -0400
+++ cups-1.2.2/scheduler/printers.c 2006-08-14 06:09:33.000000000 -0400
--- cups-1.2.2/scheduler/printers.c.lspp 2006-08-24 12:28:38.000000000 +0100
+++ cups-1.2.2/scheduler/printers.c 2006-08-24 12:30:49.000000000 +0100
@@ -57,6 +57,8 @@
* printing desktop tools.
*/
@ -2094,7 +2094,7 @@
DEBUG_printf(("cupsdSetPrinterAttrs: entering name = %s, type = %x\n", p->name,
@@ -1578,6 +1591,38 @@
@@ -1579,6 +1592,37 @@
attr->values[1].string.text = _cupsStrAlloc(Classification ?
Classification : p->job_sheets[1]);
}
@ -2112,12 +2112,11 @@
+ cupsdLogMessage(CUPSD_LOG_ERROR, "cupsdSetPrinterAttrs: Unable to get printer context");
+ else
+ printercon = context_new(devcon);
+
+ if (context_range_get(printercon))
+ rangestr = strdup(context_range_get(printercon));
+ }
+
+ if (rangestr == NULL)
+ if (printercon && context_range_get(printercon))
+ rangestr = strdup(context_range_get(printercon));
+ else
+ rangestr = strdup("unknown");
+
+ cupsdSetStringf(&audit_message, "[Config] printer=%s uri=%s banners set to %s %s has range %s",

View File

@ -6,7 +6,7 @@
Summary: Common Unix Printing System
Name: cups
Version: 1.2.2
Release: 15
Release: 16
License: GPL
Group: System Environment/Daemons
Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
@ -420,6 +420,9 @@ rm -rf $RPM_BUILD_ROOT
%{cups_serverbin}/daemon/cups-lpd
%changelog
* Thu Aug 24 2006 Tim Waugh <twaugh@redhat.com> 1:1.2.2-16
- Fixed another LSPP patch problem noted by Erwin Rol.
* Thu Aug 24 2006 Tim Waugh <twaugh@redhat.com> 1:1.2.2-15
- Fixed LSPP patch passing NULL to strcmp (bug #203784).