1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$NetBSD: patch-ac,v 1.3 2012/01/26 11:49:23 drochner Exp $
--- foomaticrip.c.orig 2011-07-25 21:29:09.000000000 +0000
+++ foomaticrip.c
@@ -180,7 +180,7 @@ char cupsfilterpath[PATH_MAX] = "/usr/lo
"/opt/cups/filter:"
"/usr/lib/cups/filter";
-char modern_shell[64] = "/bin/bash";
+char modern_shell[64] = "/bin/sh";
void config_set_option(const char *key, const char *value)
{
@@ -1068,6 +1068,7 @@ int print_file(const char *filename, int
if (dup2(fileno(out), fileno(stdin)) < 0)
rip_die(EXIT_PRNERR_NORETRY_BAD_SETTINGS,
"Couldn't dup stdout of pdf-to-ps\n");
+ rewind(stdin);
ret = print_file("<STDIN>", 0);
@@ -1099,6 +1100,7 @@ int print_file(const char *filename, int
/* Read further data from the file converter and not from STDIN */
if (dup2(fileno(fchandle), fileno(stdin)) < 0)
rip_die(EXIT_PRNERR_NORETRY_BAD_SETTINGS, "Couldn't dup fileconverterhandle\n");
+ rewind(stdin);
ret = print_file("<STDIN>", 0);
|