From 2c16ad0b315c64a0ca70a1cad40d82e34d378242 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sep 14 2011 11:10:45 +0000 Subject: Merge branch 'f15' into f16 --- diff --git a/cups-cups-get-classes.patch b/cups-cups-get-classes.patch index c215a89..c998852 100644 --- a/cups-cups-get-classes.patch +++ b/cups-cups-get-classes.patch @@ -1,6 +1,6 @@ -diff -up cups-1.5b1/cups/dest.c.cups-get-classes cups-1.5b1/cups/dest.c ---- cups-1.5b1/cups/dest.c.cups-get-classes 2011-05-20 05:49:49.000000000 +0200 -+++ cups-1.5b1/cups/dest.c 2011-05-26 11:06:22.000000000 +0200 +diff -up cups-1.5.0/cups/dest.c.cups-get-classes cups-1.5.0/cups/dest.c +--- cups-1.5.0/cups/dest.c.cups-get-classes 2011-05-20 04:49:49.000000000 +0100 ++++ cups-1.5.0/cups/dest.c 2011-09-14 12:10:05.111635428 +0100 @@ -534,6 +534,7 @@ _cupsGetDests(http_t *http, /* I - char uri[1024]; /* printer-uri value */ int num_options; /* Number of options */ @@ -52,7 +52,7 @@ diff -up cups-1.5b1/cups/dest.c.cups-get-classes cups-1.5b1/cups/dest.c + * early if so. + */ + -+ if (op == CUPS_GET_CLASSES) ++ if (op == CUPS_GET_CLASSES && num_dests > 0) + { + int diff; + cups_find_dest (printer_name, NULL, num_dests, *dests, 0, &diff); diff --git a/cups.spec b/cups.spec index ce073bd..3b28d16 100644 --- a/cups.spec +++ b/cups.spec @@ -13,7 +13,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.5.0 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2 Group: System Environment/Daemons Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -639,6 +639,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/ipptool.1.gz %changelog +* Wed Sep 14 2011 Tim Waugh 1:1.5.0-8 +- Prevent libcups crash in cups-get-classes patch (bug #736698). + * Thu Sep 1 2011 Tim Waugh 1:1.5.0-7 - Use PathExistsGlob instead of DirectoryNotEmpty in cups.path (bug #734435).