summaryrefslogtreecommitdiff
path: root/src/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/startup.c')
-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[])
/* Open display, get options/resources and create the window */
if (getenv("DISPLAY") == NULL) {
- display_name = STRDUP(":0");
+ /* do not default to any display due to security issues -- vapier
+ * http://article.gmane.org/gmane.comp.security.oss.general/122
+ */
+ libast_print_error("can't open display: DISPLAY not set\n");
+ exit(EXIT_FAILURE);
} else {
display_name = STRDUP(getenv("DISPLAY"));
}