Skip to content

Commit

Permalink
foomatic-rip: Reset stdin after replacing the underlying file descrip…
Browse files Browse the repository at this point in the history
…tor.
  • Loading branch information
tillkamppeter committed Sep 28, 2018
1 parent 87f6fcd commit 64ca9c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
NEWS - OpenPrinting CUPS Filters v1.21.2 - 2018-09-02
-----------------------------------------------------

CHANGES IN V1.21.3

- foomatic-rip: Reset stdin after replacing the underlying file
descriptor (Issue #58).

CHANGES IN V1.21.2

- cups-browsed: Fixed freeing of literal string caused by
Expand Down
1 change: 1 addition & 0 deletions filter/foomatic-rip/foomaticrip.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ int print_file(const char *filename, int convert)
rip_die(EXIT_PRNERR_NORETRY_BAD_SETTINGS,
"Couldn't dup stdout of pdf-to-ps\n");

clearerr(stdin);
ret = print_file("<STDIN>", 0);

wait_for_process(renderer_pid);
Expand Down

0 comments on commit 64ca9c2

Please sign in to comment.