From c9aaacdb3561637cae457cdf2c29ed023e5ab522 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 10 Jan 2013 08:14:15 +0000 Subject: [PATCH] completely block modules named composite from being loaded SVN revision: 82522 --- src/bin/e_module.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bin/e_module.c b/src/bin/e_module.c index 218cdf79e..738808737 100644 --- a/src/bin/e_module.c +++ b/src/bin/e_module.c @@ -134,6 +134,14 @@ e_module_new(const char *name) int in_list = 0; if (!name) return NULL; + if (!e_util_strcasecmp(name, "composite")) + { + e_util_dialog_show(_("Module Error"), + _("The composite module cannot be loaded;" + "Enlightenment is already composited.")); + ERR("USER TRIED TO LOAD EXTERNAL COMP MODULE! MY TEARS FLOW LIKE VICTORIA FALLS!"); + return NULL; + } m = E_OBJECT_ALLOC(E_Module, E_MODULE_TYPE, _e_module_free); if (name[0] != '/') {