efreet: and dont try change mode if runtime dir is /tmp
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 26 Jun 2013 03:16:50 +0000 (12:16 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 26 Jun 2013 03:16:50 +0000 (12:16 +0900)
src/lib/efreet/efreet_base.c

index 7169cc6..7a13982 100644 (file)
@@ -336,7 +336,8 @@ efreet_dirs_init(void)
     else if ((st.st_mode & 0777) != 0700)
     {
 #ifdef HAVE_GETEUID
-        if (st.st_uid == geteuid())
+        if ((!(!strcmp(xdg_runtime_dir, "/tmp"))) &&
+            (st.st_uid == geteuid()))
         {
             ERR("XDG_RUNTIME_DIR=%s is mode %o, changing to 0700",
                 xdg_runtime_dir, st.st_mode & 0777);