efreet: and dont try change mode if runtime dir is /tmp
This commit is contained in:
parent
d64c808a73
commit
33678961b6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue