summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-06-26 12:16:50 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-06-26 12:16:50 +0900
commit33678961b6fee5f01875dc84680d1ba1700799d3 (patch)
tree994c7210ffebc1aa69b8b6b2d95aa00ff6665f50
parentd64c808a733321dfec13d3fe677278d0cdb817b4 (diff)
efreet: and dont try change mode if runtime dir is /tmp
-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);