forked from enlightenment/efl
efreet - fix efreetd to not exit on $home being in extra app dirs
if a client added $home in the efreet extra desktops dirs, then efreetd would detect and nuke cache, exit, causing a restart cycle forever. this makes efreet simply ignore the errant dir so it can keep working. @fix
This commit is contained in:
parent
14d5fde2d7
commit
bd7ccd45b6
|
@ -521,12 +521,8 @@ _check_recurse_monitor_sanity(Eina_Inarray *stack, const char *path, unsigned in
|
||||||
// detect if we start recursing at $HOME - a sign of something wrong
|
// detect if we start recursing at $HOME - a sign of something wrong
|
||||||
if ((home) && (!strcmp(home, path)))
|
if ((home) && (!strcmp(home, path)))
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
ERR("Recursively monitor homedir! Ignore.");
|
||||||
|
return EINA_FALSE;
|
||||||
ERR("Recursively monitor homedir! Remove cache and exit.");
|
|
||||||
snprintf(buf, sizeof(buf), "%s/efreet", efreet_cache_home_get());
|
|
||||||
if (!ecore_file_recursive_rm(buf)) ERR("Can't delete efreet cache dir");
|
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue