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



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to