summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_base.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/efreet/efreet_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_base.c b/src/lib/efreet/efreet_base.c
index 7169cc6f1d..7a1398283a 100644
--- a/src/lib/efreet/efreet_base.c
+++ b/src/lib/efreet/efreet_base.c
@@ -336,7 +336,8 @@ efreet_dirs_init(void)
336 else if ((st.st_mode & 0777) != 0700) 336 else if ((st.st_mode & 0777) != 0700)
337 { 337 {
338#ifdef HAVE_GETEUID 338#ifdef HAVE_GETEUID
339 if (st.st_uid == geteuid()) 339 if ((!(!strcmp(xdg_runtime_dir, "/tmp"))) &&
340 (st.st_uid == geteuid()))
340 { 341 {
341 ERR("XDG_RUNTIME_DIR=%s is mode %o, changing to 0700", 342 ERR("XDG_RUNTIME_DIR=%s is mode %o, changing to 0700",
342 xdg_runtime_dir, st.st_mode & 0777); 343 xdg_runtime_dir, st.st_mode & 0777);