summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-04-16 03:23:27 +0000
committerMike Frysinger <vapier@gentoo.org>2008-04-16 03:23:27 +0000
commitb9f3a99c5690cfd26f986cc1940275ad29714fb6 (patch)
tree4088a3f69391fdfd9925b1c0a9a286ee24de8fe6
parentc89592cf96af88f6b30dbe2f33d6bbcbe8925b98 (diff)
fix from Nico Golde from Debian for deb bug #473127 and gentoo bug #216833
SVN revision: 34279
-rw-r--r--src/startup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/startup.c b/src/startup.c
index bbece55..e040476 100644
--- a/src/startup.c
+++ b/src/startup.c
@@ -96,7 +96,11 @@ eterm_bootstrap(int argc, char *argv[])
96 96
97 /* Open display, get options/resources and create the window */ 97 /* Open display, get options/resources and create the window */
98 if (getenv("DISPLAY") == NULL) { 98 if (getenv("DISPLAY") == NULL) {
99 display_name = STRDUP(":0"); 99 /* do not default to any display due to security issues -- vapier
100 * http://article.gmane.org/gmane.comp.security.oss.general/122
101 */
102 libast_print_error("can't open display: DISPLAY not set\n");
103 exit(EXIT_FAILURE);
100 } else { 104 } else {
101 display_name = STRDUP(getenv("DISPLAY")); 105 display_name = STRDUP(getenv("DISPLAY"));
102 } 106 }