summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-10-18 08:10:23 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-10-18 08:10:23 +0000
commit8009998bccd46d05e75fc9d74d684c7375377fc4 (patch)
tree74341792e05302f41de0c710ef50ab440fb1e7e2
parentfc7b1d66a65333252b8d864ff1c0795e6135d5a8 (diff)
efreet: remove realpath
No need to use realpath here, paths coming in here are already sane SVN revision: 78160
-rw-r--r--legacy/efreet/src/bin/efreet_icon_cache_create.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/legacy/efreet/src/bin/efreet_icon_cache_create.c b/legacy/efreet/src/bin/efreet_icon_cache_create.c
index 0994955beb..1ed629f53f 100644
--- a/legacy/efreet/src/bin/efreet_icon_cache_create.c
+++ b/legacy/efreet/src/bin/efreet_icon_cache_create.c
@@ -474,22 +474,19 @@ icon_theme_index_read(Efreet_Cache_Icon_Theme *theme, const char *path)
474 Efreet_Icon_Theme_Directory *dir; 474 Efreet_Icon_Theme_Directory *dir;
475 const char *tmp; 475 const char *tmp;
476 struct stat st; 476 struct stat st;
477 char rp[PATH_MAX];
478 477
479 if (!theme || !path) return EINA_FALSE; 478 if (!theme || !path) return EINA_FALSE;
480 479
481 if (!realpath(path, rp)) return EINA_FALSE; 480 if (stat(path, &st) < 0) return EINA_FALSE;
482 481 if (theme->path && !strcmp(theme->path, path) && theme->last_cache_check >= (long long) st.st_mtime)
483 if (stat(rp, &st) < 0) return EINA_FALSE;
484 if (theme->path && !strcmp(theme->path, rp) && theme->last_cache_check >= (long long) st.st_mtime)
485 { 482 {
486 /* no change */ 483 /* no change */
487 theme->valid = 1; 484 theme->valid = 1;
488 return EINA_TRUE; 485 return EINA_TRUE;
489 } 486 }
490 if (!theme->path || strcmp(theme->path, rp)) 487 if (!theme->path || strcmp(theme->path, path))
491 { 488 {
492 theme->path = eina_stringshare_add(rp); 489 theme->path = eina_stringshare_add(path);
493 eina_array_push(strs, theme->path); 490 eina_array_push(strs, theme->path);
494 } 491 }
495 if ((long long) st.st_mtime > theme->last_cache_check) 492 if ((long long) st.st_mtime > theme->last_cache_check)