diff options
author | Tobias Heinlein <keytoaster@gentoo.org> | 2008-05-03 11:58:57 +0000 |
---|---|---|
committer | Tobias Heinlein <keytoaster@gentoo.org> | 2008-05-03 11:58:57 +0000 |
commit | 68de247331bdc20ba1ed3e6ce66f304380b41b2a (patch) | |
tree | c4a53bae121f44cb05a77196921917b7206830d8 /x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch | |
parent | Version bump for bug 219556, thanks to Peter Alfredsen. (diff) | |
download | gentoo-2-68de247331bdc20ba1ed3e6ce66f304380b41b2a.tar.gz gentoo-2-68de247331bdc20ba1ed3e6ce66f304380b41b2a.tar.bz2 gentoo-2-68de247331bdc20ba1ed3e6ce66f304380b41b2a.zip |
Adding patch to fix security bug #219754
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch')
-rw-r--r-- | x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch b/x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch new file mode 100644 index 000000000000..27f56255acdb --- /dev/null +++ b/x11-terms/multi-aterm/files/multi-aterm-0.2.1-display-security-issue.patch @@ -0,0 +1,21 @@ +--- multi-aterm-0.2.1/src/main.c 2004-09-03 20:49:36.000000000 +0200 ++++ multi-aterm-0.2.1.new/src/main.c 2008-05-03 13:33:04.000000000 +0200 +@@ -1853,15 +1853,13 @@ + //get_options(argc, argv); + //display_options(); + +- if (display_name == NULL) +- if ((display_name = getenv("DISPLAY")) == NULL) +- display_name = ":0"; +- + Xdisplay = XOpenDisplay(display_name); + + if (!Xdisplay) + { +- print_error("can't open display %s", display_name); ++ print_error("can't open display %s", display_name?display_name: ++ getenv("DISPLAY")?getenv("DISPLAY"): ++ "as no -d given and DISPLAY not set"); + exit(EXIT_FAILURE); + } + |