forked from enlightenment/efl
efreet: don't try change permissions on runtime dir we don't own.
This commit is contained in:
parent
1633d7f3bb
commit
8e3d94d661
|
@ -334,6 +334,8 @@ efreet_dirs_init(void)
|
|||
eina_stringshare_replace(&xdg_runtime_dir, NULL);
|
||||
}
|
||||
else if ((st.st_mode & 0777) != 0700)
|
||||
{
|
||||
if (st.st_uid == geteuid())
|
||||
{
|
||||
ERR("XDG_RUNTIME_DIR=%s is mode %o, changing to 0700",
|
||||
xdg_runtime_dir, st.st_mode & 0777);
|
||||
|
@ -344,6 +346,7 @@ efreet_dirs_init(void)
|
|||
eina_stringshare_replace(&xdg_runtime_dir, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
/* hostname */
|
||||
if (gethostname(buf, sizeof(buf)) < 0)
|
||||
hostname = eina_stringshare_add("");
|
||||
|
|
Loading…
Reference in New Issue