summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/lib/efreet/efreet_base.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 541d045e6b..80d8ffda78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -518,6 +518,7 @@ mkdirat \
518mtrace \ 518mtrace \
519realpath \ 519realpath \
520strlcpy \ 520strlcpy \
521geteuid \
521]) 522])
522 523
523AC_FUNC_ALLOCA 524AC_FUNC_ALLOCA
diff --git a/src/lib/efreet/efreet_base.c b/src/lib/efreet/efreet_base.c
index 93e264cf70..7169cc6f1d 100644
--- a/src/lib/efreet/efreet_base.c
+++ b/src/lib/efreet/efreet_base.c
@@ -335,6 +335,7 @@ efreet_dirs_init(void)
335 } 335 }
336 else if ((st.st_mode & 0777) != 0700) 336 else if ((st.st_mode & 0777) != 0700)
337 { 337 {
338#ifdef HAVE_GETEUID
338 if (st.st_uid == geteuid()) 339 if (st.st_uid == geteuid())
339 { 340 {
340 ERR("XDG_RUNTIME_DIR=%s is mode %o, changing to 0700", 341 ERR("XDG_RUNTIME_DIR=%s is mode %o, changing to 0700",
@@ -346,6 +347,7 @@ efreet_dirs_init(void)
346 eina_stringshare_replace(&xdg_runtime_dir, NULL); 347 eina_stringshare_replace(&xdg_runtime_dir, NULL);
347 } 348 }
348 } 349 }
350#endif
349 } 351 }
350 /* hostname */ 352 /* hostname */
351 if (gethostname(buf, sizeof(buf)) < 0) 353 if (gethostname(buf, sizeof(buf)) < 0)