efreet: and dont try change mode if runtime dir is /tmp

This commit is contained in:
Carsten Haitzler 2013-06-26 12:16:50 +09:00
parent d64c808a73
commit 33678961b6
1 changed files with 2 additions and 1 deletions

View 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);