From 0498d5568f3580906cfecb9aead8c4fdae7e462a Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Jan 29 2005 12:50:02 +0000 Subject: - Applied patch to fix CAN-2004-1185 (bug #144684). --- diff --git a/enscript-1.6.1-CAN-2004-1185.patch b/enscript-1.6.1-CAN-2004-1185.patch new file mode 100644 index 0000000..9dd8fad --- /dev/null +++ b/enscript-1.6.1-CAN-2004-1185.patch @@ -0,0 +1,22 @@ +--- enscript-1.6.1/src/psgen.c.CAN-2004-1185 2005-01-10 15:55:33.560648363 +0000 ++++ enscript-1.6.1/src/psgen.c 2005-01-10 15:56:30.266830723 +0000 +@@ -2210,9 +2210,10 @@ + MESSAGE (2, (stderr, "^@epsf=\"%s\"\n", token->u.epsf.filename)); + + i = strlen (token->u.epsf.filename); ++ /* + if (i > 0 && token->u.epsf.filename[i - 1] == '|') + { +- /* Read EPS data from pipe. */ ++ / * Read EPS data from pipe. * / + token->u.epsf.pipe = 1; + token->u.epsf.filename[i - 1] = '\0'; + token->u.epsf.fp = popen (token->u.epsf.filename, "r"); +@@ -2225,6 +2226,7 @@ + } + } + else ++ */ + { + /* Read EPS data from file. */ + tilde_subst (token->u.epsf.filename, filename); diff --git a/enscript.spec b/enscript.spec index 7cc95fd..99ecd27 100644 --- a/enscript.spec +++ b/enscript.spec @@ -10,6 +10,7 @@ Patch2: enscript-1.6.1-tmp.patch Patch3: enscript-1.6.1-locale.patch Patch4: enscript-doublefree.patch Patch5: enscript-1.6.1-CAN-2004-1184.patch +Patch6: enscript-1.6.1-CAN-2004-1185.patch URL: http://people.ssh.fi/mtr/genscript/index.html BuildRoot: %{_tmppath}/%{name}-%{version}-root Obsoletes: nenscript @@ -28,6 +29,7 @@ includes many options for customizing printouts. %patch3 -p1 -b .locale %patch4 -p1 -b .doublefree %patch5 -p1 -b .CAN-2004-1184 +%patch6 -p1 -b .CAN-2004-1185 %build %configure --with-media=Letter @@ -64,6 +66,7 @@ rm -rf %{buildroot} %changelog * Tue Jan 29 2005 Tim Waugh +- Applied patch to fix CAN-2004-1185 (bug #144684). - Backported patch to fix CAN-2004-1184 (bug #144684). * Mon Sep 27 2004 Tim Waugh 1.6.1-28