From 285a0432ade19828dfdec9a47501e81b6ae2930b Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Mar 28 2013 15:35:11 +0000 Subject: check cupsd.conf existence prior to grepping it (#928816) --- diff --git a/cups-filters.spec b/cups-filters.spec index 1b47ca2..14da21e 100644 --- a/cups-filters.spec +++ b/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.0.31 -Release: 1%{?dist} +Release: 2%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -131,7 +131,7 @@ if [ $1 -eq 1 ] ; then OUT=%{_sysconfdir}/cups/cups-browsed.conf keyword=BrowsePoll - if grep -iq ^$keyword "$IN"; then + if [ -f "$IN" ] && grep -iq ^$keyword "$IN"; then if ! grep -iq ^$keyword "$OUT"; then (cat >> "$OUT" < - 1.0.31-2 +- check cupsd.conf existence prior to grepping it (#928816) + * Fri Mar 22 2013 Jiri Popelka - 1.0.31-1 - 1.0.31