- Fixed another LSPP patch problem noted by Erwin Rol.
This commit is contained in:
parent
d90f3913c7
commit
11192870f4
@ -2058,8 +2058,8 @@
|
|||||||
-$(RMDIR) $(STATEDIR)/certs
|
-$(RMDIR) $(STATEDIR)/certs
|
||||||
-$(RMDIR) $(STATEDIR)
|
-$(RMDIR) $(STATEDIR)
|
||||||
-$(RMDIR) $(SERVERROOT)/ppd
|
-$(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.lspp 2006-08-24 12:28:38.000000000 +0100
|
||||||
+++ cups-1.2.2/scheduler/printers.c 2006-08-14 06:09:33.000000000 -0400
|
+++ cups-1.2.2/scheduler/printers.c 2006-08-24 12:30:49.000000000 +0100
|
||||||
@@ -57,6 +57,8 @@
|
@@ -57,6 +57,8 @@
|
||||||
* printing desktop tools.
|
* printing desktop tools.
|
||||||
*/
|
*/
|
||||||
@ -2094,7 +2094,7 @@
|
|||||||
|
|
||||||
|
|
||||||
DEBUG_printf(("cupsdSetPrinterAttrs: entering name = %s, type = %x\n", p->name,
|
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 ?
|
attr->values[1].string.text = _cupsStrAlloc(Classification ?
|
||||||
Classification : p->job_sheets[1]);
|
Classification : p->job_sheets[1]);
|
||||||
}
|
}
|
||||||
@ -2112,12 +2112,11 @@
|
|||||||
+ cupsdLogMessage(CUPSD_LOG_ERROR, "cupsdSetPrinterAttrs: Unable to get printer context");
|
+ cupsdLogMessage(CUPSD_LOG_ERROR, "cupsdSetPrinterAttrs: Unable to get printer context");
|
||||||
+ else
|
+ else
|
||||||
+ printercon = context_new(devcon);
|
+ 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");
|
+ rangestr = strdup("unknown");
|
||||||
+
|
+
|
||||||
+ cupsdSetStringf(&audit_message, "[Config] printer=%s uri=%s banners set to %s %s has range %s",
|
+ cupsdSetStringf(&audit_message, "[Config] printer=%s uri=%s banners set to %s %s has range %s",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
Summary: Common Unix Printing System
|
Summary: Common Unix Printing System
|
||||||
Name: cups
|
Name: cups
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 15
|
Release: 16
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
|
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
|
%{cups_serverbin}/daemon/cups-lpd
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Aug 24 2006 Tim Waugh <twaugh@redhat.com> 1:1.2.2-15
|
||||||
- Fixed LSPP patch passing NULL to strcmp (bug #203784).
|
- Fixed LSPP patch passing NULL to strcmp (bug #203784).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user