- Fixed filename handling in foomatic-rip (bug #457679).

This commit is contained in:
Tim Waugh 2008-09-05 14:54:53 +00:00
parent 5b0c3e4ef7
commit a8190d2c63
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,35 @@
diff -U0 foomatic-filters-3.0-20080904/ChangeLog.ppd-filenames foomatic-filters-3.0-20080904/ChangeLog
--- foomatic-filters-3.0-20080904/ChangeLog.ppd-filenames 2008-09-04 08:20:14.000000000 +0100
+++ foomatic-filters-3.0-20080904/ChangeLog 2008-09-05 15:51:23.000000000 +0100
@@ -0,0 +1,6 @@
+2008-09-05 Till Kamppeter <till.kamppeter@gmail.com>
+
+ * foomatic-rip.in: Make foomatic-rip also working with PPD file
+ names which contain brackets or other special characters (Bug
+ #169).
+
diff -up foomatic-filters-3.0-20080904/foomatic-rip.in.ppd-filenames foomatic-filters-3.0-20080904/foomatic-rip.in
--- foomatic-filters-3.0-20080904/foomatic-rip.in.ppd-filenames 2008-09-05 15:49:54.000000000 +0100
+++ foomatic-filters-3.0-20080904/foomatic-rip.in 2008-09-05 15:51:23.000000000 +0100
@@ -517,10 +517,10 @@ if (defined($ENV{'PRINTCAP_ENTRY'})){
# PPD file name given via the command line
# allow duplicates, and use the last specified one
while ( ($spooler ne 'lprng') and ($argstr =~ s/\x01-p(\x01|)([^\x01]+)\x01/\x01/)) {
- $ppdfile = removeshellescapes($2);
+ $ppdfile = $2;
}
while ($argstr =~ s/\x01--ppd(\x01|=|)([^\x01]+)\x01/\x01/) {
- $ppdfile = removeshellescapes($2);
+ $ppdfile = $2;
}
# Check for LPD/GNUlpr by typical options which the spooler puts onto
@@ -818,7 +818,7 @@ if (($spooler eq 'lpd') ||
($spooler eq 'gnulpr')) {
# Get PPD file name as the last command line argument
- $ppdfile = removeshellescapes($rargs[$#rargs]);
+ $ppdfile = $rargs[$#rargs];
}

View File

@ -6,7 +6,7 @@
Summary: Foomatic printer database.
Name: foomatic
Version: 3.0.2
Release: 65%{?dist}
Release: 66%{?dist}
License: GPLv2+
Group: System Environment/Libraries
@ -32,6 +32,8 @@ Patch15: foomatic-bad-utf8.patch
Patch18: foomatic-sigpipe.patch
Patch19: foomatic-ppd-filenames.patch
Url: http://www.linuxprinting.org
BuildRequires: perl >= 3:5.8.1
BuildRequires: perl(ExtUtils::MakeMaker)
@ -76,6 +78,7 @@ pushd foomatic-filters-3.0-%{filtersver}
%patch1 -p1 -b .libdir
%patch5 -p1 -b .fontpath
%patch18 -p1 -b .sigpipe
%patch19 -p1 -b .ppd-filenames
./make_configure
popd
@ -232,6 +235,9 @@ rm -fr %buildroot $RPM_BUILD_DIR/%{name}
%{_var}/cache/foomatic
%changelog
* Fri Sep 5 2008 Tim Waugh <twaugh@redhat.com> 3.0.2-66
- Fixed filename handling in foomatic-rip (bug #457679).
* Thu Sep 4 2008 Tim Waugh <twaugh@redhat.com> 3.0.2-65
- Removed ampathxml and xml-cflags patches.
- Updated db-hpijs to 20080904.