enscript/enscript-1.6.1-CAN-2004-1185.patch

23 lines
713 B
Diff

--- 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);