|
From: Enlightenment C. <no...@cv...> - 2008-04-16 03:23:32
|
Enlightenment CVS committal
Author : vapier
Project : eterm
Module : Eterm
Dir : eterm/Eterm/src
Modified Files:
startup.c
Log Message:
fix from Nico Golde from Debian for deb bug #473127 and gentoo bug #216833
===================================================================
RCS file: /cvs/e/eterm/Eterm/src/startup.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -3 -r1.58 -r1.59
--- startup.c 30 Oct 2006 21:12:12 -0000 1.58
+++ startup.c 16 Apr 2008 03:23:27 -0000 1.59
@@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-static const char cvs_ident[] = "$Id: startup.c,v 1.58 2006/10/30 21:12:12 mej Exp $";
+static const char cvs_ident[] = "$Id: startup.c,v 1.59 2008/04/16 03:23:27 vapier Exp $";
#include "config.h"
#include "feature.h"
@@ -96,7 +96,11 @@
/* 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"));
}
|