summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-11-02 10:11:53 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-11-02 10:11:53 +0900
commitbd7ccd45b60998b61e9cd392c058006f800fc326 (patch)
tree05e6fe8e4e1f841f6a34558d96855cce726b349a
parent14d5fde2d72a933d7c0def7de310cdfda909602a (diff)
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
-rw-r--r--src/bin/efreet/efreetd_cache.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/efreet/efreetd_cache.c b/src/bin/efreet/efreetd_cache.c
index e3aeb13f70..e1896e72c8 100644
--- a/src/bin/efreet/efreetd_cache.c
+++ b/src/bin/efreet/efreetd_cache.c
@@ -521,12 +521,8 @@ _check_recurse_monitor_sanity(Eina_Inarray *stack, const char *path, unsigned in
521 // detect if we start recursing at $HOME - a sign of something wrong 521 // detect if we start recursing at $HOME - a sign of something wrong
522 if ((home) && (!strcmp(home, path))) 522 if ((home) && (!strcmp(home, path)))
523 { 523 {
524 char buf[PATH_MAX]; 524 ERR("Recursively monitor homedir! Ignore.");
525 525 return EINA_FALSE;
526 ERR("Recursively monitor homedir! Remove cache and exit.");
527 snprintf(buf, sizeof(buf), "%s/efreet", efreet_cache_home_get());
528 if (!ecore_file_recursive_rm(buf)) ERR("Can't delete efreet cache dir");
529 exit(-1);
530 } 526 }
531 return EINA_TRUE; 527 return EINA_TRUE;
532} 528}