From c8d41b80aa5dd025dd59f60cb473837a8663fe4e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 04 2020 14:08:54 +0000 Subject: import cups-filters-1.20.0-21.el8 --- diff --git a/SOURCES/foomatic-remove-tmpfile.patch b/SOURCES/foomatic-remove-tmpfile.patch new file mode 100644 index 0000000..bbe7a68 --- /dev/null +++ b/SOURCES/foomatic-remove-tmpfile.patch @@ -0,0 +1,17 @@ +diff --git a/filter/foomatic-rip/foomaticrip.c b/filter/foomatic-rip/foomaticrip.c +index 7dc2426..146125f 100644 +--- a/filter/foomatic-rip/foomaticrip.c ++++ b/filter/foomatic-rip/foomaticrip.c +@@ -672,6 +672,12 @@ int print_file(const char *filename, int convert) + if (out != NULL) + fclose(out); + ++ // Delete temp file if we created one ++ if ( *tmpfilename ) { ++ _log("Removing temporary file %s\n", tmpfilename); ++ unlink(tmpfilename); ++ } ++ + return ret; + } + diff --git a/SPECS/cups-filters.spec b/SPECS/cups-filters.spec index a440171..6a3631d 100644 --- a/SPECS/cups-filters.spec +++ b/SPECS/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.20.0 -Release: 20%{?dist} +Release: 21%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -43,6 +43,8 @@ Patch08: cups-browsed-socket-leak.patch Patch09: cups-browsed-error-messages.patch # 1813229 - cups-browsed leaks memory Patch10: cups-browsed-memory-leaks.patch +# 1891681 - [RHEL 8] foomatic-rip files up /var/spool/tmp with temporary files +Patch11: foomatic-remove-tmpfile.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -169,6 +171,8 @@ This is the development package for OpenPrinting CUPS filters and backends. %patch09 -p1 -b .cups-browsed-error-messages # 1813229 - cups-browsed leaks memory %patch10 -p1 -b .cups-browsed-memory-leak +# 1891681 - [RHEL 8] foomatic-rip files up /var/spool/tmp with temporary files +%patch11 -p1 -b .remove-tmpfile %build # work-around Rpath @@ -315,6 +319,9 @@ make check %{_libdir}/libfontembed.so %changelog +* Tue Oct 27 2020 Zdenek Dohnal - 1.20.0-21 +- 1891681 - [RHEL 8] foomatic-rip files up /var/spool/tmp with temporary files + * Wed Apr 08 2020 Zdenek Dohnal - 1.20.0-20 - 1813229 - cups-browsed leaks memory