From: | "Tobias Heinlein (keytoaster)" <keytoaster@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-terms/wterm/files: wterm-6.2.9-display-security-issue.patch |
Date: | Sat, 03 May 2008 12:58:46 |
Message-Id: | E1JsHK8-0005Ll-BH@stork.gentoo.org |
1 | keytoaster 08/05/03 12:58:44 |
2 | |
3 | Added: wterm-6.2.9-display-security-issue.patch |
4 | Log: |
5 | Adding patch to fix security bug #219762 |
6 | (Portage version: 2.1.5_rc6) |
7 | |
8 | Revision Changes Path |
9 | 1.1 x11-terms/wterm/files/wterm-6.2.9-display-security-issue.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-terms/wterm/files/wterm-6.2.9-display-security-issue.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-terms/wterm/files/wterm-6.2.9-display-security-issue.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: wterm-6.2.9-display-security-issue.patch |
15 | =================================================================== |
16 | --- wterm-6.2.9/src/main.c 2001-08-17 06:47:41.000000000 +0200 |
17 | +++ wterm-6.2.9.new/src/main.c 2008-05-03 14:44:43.000000000 +0200 |
18 | @@ -1444,14 +1444,13 @@ |
19 | /* |
20 | * Open display, get options/resources and create the window |
21 | */ |
22 | - if ((display_name = getenv("DISPLAY")) == NULL) |
23 | - display_name = ":0"; |
24 | - |
25 | get_options(argc, argv); |
26 | |
27 | Xdisplay = XOpenDisplay(display_name); |
28 | if (!Xdisplay) { |
29 | - print_error("can't open display %s", display_name); |
30 | + print_error("can't open display %s", display_name?display_name: |
31 | + getenv("DISPLAY")?getenv("DISPLAY"): |
32 | + "as no -d given and DISPLAY not set"); |
33 | exit(EXIT_FAILURE); |
34 | } |
35 | extract_resources(Xdisplay, rs_name); |
36 | |
37 | |
38 | |
39 | -- |
40 | gentoo-commits@l.g.o mailing list |