diff options
author | tnn <tnn> | 2008-03-31 20:28:28 +0000 |
---|---|---|
committer | tnn <tnn> | 2008-03-31 20:28:28 +0000 |
commit | 3441cb744d8b597f9d532e9abed8edffd50465d7 (patch) | |
tree | 4715c67afa5cb66340aed38e7e09d3fa8115ee26 /x11/mrxvt/patches | |
parent | 0321788e7e83592fe49fac224e32f120097e0460 (diff) | |
download | pkgsrc-3441cb744d8b597f9d532e9abed8edffd50465d7.tar.gz |
Bomb if $DISPLAY is unset. Prompted by an advisory for rxvt.
Diffstat (limited to 'x11/mrxvt/patches')
-rw-r--r-- | x11/mrxvt/patches/patch-ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/mrxvt/patches/patch-ac b/x11/mrxvt/patches/patch-ac new file mode 100644 index 00000000000..ee1a11322e8 --- /dev/null +++ b/x11/mrxvt/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2008/03/31 20:28:28 tnn Exp $ + +--- src/init.c.orig 2007-08-04 23:47:58.000000000 +0200 ++++ src/init.c +@@ -1031,7 +1031,7 @@ rxvt_init_resources(rxvt_t* r, int argc, + * Open display, get options/resources and create the window + */ + if (IS_NULL(rs[Rs_display_name] = getenv("DISPLAY"))) +- rs[Rs_display_name] = ":0"; ++ rs[Rs_display_name] = "Please set $DISPLAY"; + + rxvt_get_options( r, r_argc, r_argv ); + rxvt_free( r_argv ); /* XXX memory leak? */ |