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.1.1.1 2009/11/20 20:50:43 drochner Exp $
--- foomaticrip.c.orig 2009-01-14 20:23:15.000000000 +0100
+++ foomaticrip.c
@@ -153,7 +153,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)
{
@@ -968,6 +968,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);
@@ -999,6 +1000,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);
|