aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_evas/ecore_evas_module.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 22:06:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 22:06:41 +0900
commite8c13118eb39a3acaf70430951f7049c53799bae (patch)
tree3a91075c6e93f53c60cea3ebcb714575f0ce5b79 /src/lib/ecore_evas/ecore_evas_module.c
parentsetuid safeness - ensure if an app that is setuid doesn't do bad things (diff)
downloadefl-e8c13118eb39a3acaf70430951f7049c53799bae.tar.gz
fix mingw build for setuid fix/checks
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_module.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_module.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_module.c b/src/lib/ecore_evas/ecore_evas_module.c
index c98f5ad511..5285dc4cfe 100644
--- a/src/lib/ecore_evas/ecore_evas_module.c
+++ b/src/lib/ecore_evas/ecore_evas_module.c
@@ -39,7 +39,9 @@ _ecore_evas_engine_load(const char *engine)
{
char tmp[PATH_MAX] = "";
- if (getuid() == getuid())
+#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
+ if (getuid() == geteuid())
+#endif
{
if (run_in_tree)
{
@@ -81,7 +83,7 @@ _ecore_evas_engine_init(void)
// _registered_engines = eina_hash_string_small_new(EINA_FREE_CB(eina_module_free));
_registered_engines = eina_hash_string_small_new(NULL);
- if (getuid() == getuid())
+ if (getuid() == geteuid())
{
if (getenv("EFL_RUN_IN_TREE"))
{