- fix a crash when printing to a non-existant printer.
found some time ago, drunkish, somewhere in brussels, with antoine.
This commit is contained in:
parent
5c4cc13072
commit
ce6af0eb6a
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.83 2009/09/06 10:46:25 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.84 2009/09/16 12:58:44 jasper Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -9,7 +9,7 @@ COMMENT-cups= gtk+2 CUPS print backend
|
||||
VERSION= 2.16.6
|
||||
DISTNAME= gtk+-${VERSION}
|
||||
|
||||
PKGNAME-main= gtk+2-${VERSION}
|
||||
PKGNAME-main= gtk+2-${VERSION}p0
|
||||
PKGNAME-docs= gtk+2-docs-${VERSION}
|
||||
PKGNAME-cups= gtk+2-cups-${VERSION}
|
||||
|
||||
|
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-modules_printbackends_lpr_gtkprintbackendlpr_c,v 1.1 2009/09/16 12:58:44 jasper Exp $
|
||||
|
||||
Fix for #503776, git f6ed1487bd2c5c2315a07ff2f9f4426102524743
|
||||
Prevents an application from crashing when printing to a non-existant printer.
|
||||
|
||||
--- modules/printbackends/lpr/gtkprintbackendlpr.c.orig Wed Sep 16 14:21:48 2009
|
||||
+++ modules/printbackends/lpr/gtkprintbackendlpr.c Wed Sep 16 14:22:28 2009
|
||||
@@ -281,7 +281,9 @@ lpr_write (GIOChannel *source,
|
||||
{
|
||||
gsize bytes_written;
|
||||
|
||||
- g_io_channel_write_chars (ps->in,
|
||||
+ signal (SIGPIPE, SIG_IGN);
|
||||
+
|
||||
+ g_io_channel_write_chars (ps->in,
|
||||
buf,
|
||||
bytes_read,
|
||||
&bytes_written,
|
Loading…
Reference in New Issue
Block a user