fix from Nico Golde from Debian for deb bug #473127 and gentoo bug #216833

SVN revision: 34279
This commit is contained in:
Mike Frysinger 2008-04-16 03:23:27 +00:00
parent c89592cf96
commit b9f3a99c56
1 changed files with 5 additions and 1 deletions

View File

@ -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"));
}