diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-04-16 03:23:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-04-16 03:23:27 +0000 |
commit | b9f3a99c5690cfd26f986cc1940275ad29714fb6 (patch) | |
tree | 4088a3f69391fdfd9925b1c0a9a286ee24de8fe6 /src | |
parent | c89592cf96af88f6b30dbe2f33d6bbcbe8925b98 (diff) | |
download | eterm-b9f3a99c5690cfd26f986cc1940275ad29714fb6.tar.gz |
fix from Nico Golde from Debian for deb bug #473127 and gentoo bug #216833
SVN revision: 34279
Diffstat (limited to 'src')
-rw-r--r-- | src/startup.c | 6 |
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")); } |